Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 17, 2023
1 parent 989b061 commit 6660924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:edge
ENV NTP_DIRECTIVES="ratelimit\nrtcsync"

# install chrony
RUN apk add --no-cache chrony && \
RUN apk add --no-cache chrony tzdata && \
rm /etc/chrony/chrony.conf && \
rm -rf /var/cache/apk/*

Expand All @@ -18,7 +18,7 @@ EXPOSE 123/udp
VOLUME /etc/chrony /run/chrony /var/lib/chrony

# let docker know how to test container health
HEALTHCHECK CMD chronyc tracking || exit 1
HEALTHCHECK CMD chronyc -n tracking || exit 1

# start chronyd in the foreground
ENTRYPOINT [ "/bin/startup" ]

0 comments on commit 6660924

Please sign in to comment.