-
Notifications
You must be signed in to change notification settings - Fork 141
/
Dockerfile
43 lines (31 loc) · 1.22 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM harbor.ntppool.org/ntppool/base-os:3.21.0-1
USER root
ENV BUILD 20241215
RUN apk -U --no-cache upgrade --ignore alpine-baselayout
RUN apk --no-cache add gomplate alpine-base
RUN cpanm Net::Async::HTTP::Server Plack::Handler::Net::Async::HTTP::Server Plack::Middleware::Headers
RUN cpanm OpenTelemetry OpenTelemetry::SDK OpenTelemetry::Exporter::OTLP Plack::Middleware::OpenTelemetry
RUN cpanm -v https://tmp.askask.com/2024/12/Net-Async-HTTP-Server-0.14bis4.tar.gz
ENV CBCONFIG=
ENV HULK /usr/local/bin/hulk
WORKDIR /ntppool
VOLUME /ntppool/data
ADD . /ntppool
RUN mkdir /var/ntppool && chown ntppool data /var/ntppool
RUN rm -fr docs/ntppool/_syndicate && \
mkdir -p data/syndicate && \
ln -s /ntppool/data/syndicate docs/ntppool/_syndicate && \
chown ntppool data/syndicate
# because quay.io sets timestamps to 1980 for some reason ...
RUN find ./docs -type f -print0 | xargs -0 touch
RUN perl Makefile.PL && \
make templates && \
CBCONFIG=docker/combust.build.conf bin/setup && \
mkdir -p tmp logs && \
chown -R ntppool tmp logs
#RUN bash -c "ls -la docs/shared/static{,/.g,/css}"
EXPOSE 8299
ENTRYPOINT ["./docker/entrypoint"]
CMD ["./docker-run"]
USER ntppool
RUN git config --global --add safe.directory /ntppool