Cleaned up a bit and switched to Debian 10

This commit is contained in:
Jack-Benny Persson 2020-05-24 14:12:28 +02:00
parent f84e3707f1
commit 4b5cbdc6fb
2 changed files with 4 additions and 4 deletions

View File

@ -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"]

View File

@ -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"