From 4b5cbdc6fbe855ea7758d162232fccd02062a489 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Sun, 24 May 2020 14:12:28 +0200 Subject: [PATCH] Cleaned up a bit and switched to Debian 10 --- Dockerfile | 6 ++++-- ntpd.conf | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) 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"