forked from publicarray/docker-ntpsec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
builder-debian_10-slim
27 lines (22 loc) · 1.11 KB
/
builder-debian_10-slim
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
FROM debian:10-slim
LABEL maintainer "rouing"
LABEL description "NTP reference implementation, refactored for security"
RUN apt-get update \
&& apt-get install -y netbase pkg-config m4 wget tar gcc bison python3-dev libssl-dev libcap-dev libseccomp-dev pps-tools libavahi-compat-libdnssd-dev libbsd-dev python3-ntp libgps-dev \
&& rm -rf /var/lib/apt/lists/*
ENV NTPSEC_VERSION 1.1.9
ENV NTPSEC_DOWNLOAD_URL "https://ftp.ntpsec.org/pub/releases/ntpsec-${NTPSEC_VERSION}.tar.gz"
ENV NTPSEC_SHA256 0acade979a807a047c2a8fd7f497235d9d6a5d0d54726e5d27505506d6ec00cc
RUN set -x && \
mkdir -p /tmp-ntpsec && \
cd /tmp-ntpsec && \
wget -O ntpsec.tar.gz $NTPSEC_DOWNLOAD_URL && \
echo "${NTPSEC_SHA256} *ntpsec.tar.gz" | sha256sum -c - && \
tar xzf ntpsec.tar.gz --strip-components=1
RUN set -x && \
cd /tmp-ntpsec && \
ln -s /usr/bin/python3 /usr/bin/python && \
./waf configure --prefix=/usr --python=python3 --disable-doc --disable-manpage --enable-leap-smear --enable-mssntp --enable-seccomp --refclock=all && \
./waf build --verbose && \
./waf check --verbose && \
./waf install