diff --git a/Dockerfile b/Dockerfile index dea06f8..c2517cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ -FROM alpine:3 -RUN apk add openntpd && mkdir -m 1777 /var/empty/tmp +FROM debian:10-slim +RUN apt-get update && apt-get -y install openntpd \ + && mkdir /var/run/openntpd \ + && apt-get clean COPY ./ntpd.conf /etc/ntpd.conf EXPOSE 123/udp ENTRYPOINT ["/usr/sbin/ntpd", "-d", "-f", "/etc/ntpd.conf"] diff --git a/ntpd.conf b/ntpd.conf index d081ecc..a2521dd 100644 --- a/ntpd.conf +++ b/ntpd.conf @@ -9,5 +9,3 @@ server sth2.ntp.se weight 1 server svl1.ntp.se weight 1 server svl2.ntp.se weight 1 -sensor * -constraints from "https://www.google.se"