-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (21 loc) · 841 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## https://hub.docker.com/_/alpine/tags
FROM alpine:3.21.3
## https://pkgs.alpinelinux.org/packages?name=chrony&branch=v3.21&repo=&arch=x86_64&origin=&flagged=&maintainer=
ENV chronyV="chrony=~4.6.1-r0"
LABEL org.opencontainers.image.authors="rardcode <sak37564@ik.me>"
LABEL Description="Chrony server based on Alpine."
ENV APP_NAME="chrony"
RUN set -xe && \
: "---------- ESSENTIAL packages INSTALLATION ----------" && \
apk update --no-cache && \
apk upgrade --available && \
apk add bash
RUN set -xe && \
: "---------- SPECIFIC packages INSTALLATION ----------" && \
apk update --no-cache && \
apk add --upgrade ${chronyV}
ADD rootfs /
# Check Process Within The Container Is Healthy
HEALTHCHECK --interval=60s --timeout=5s CMD chronyc tracking > /dev/null
ENTRYPOINT ["/entrypoint.sh"]
CMD ["chronyd","-d","-s" ]