-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
158 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
FROM debian:stable-slim AS build | ||
|
||
ENV NTP_VERSION=ntp-4.2.8p18 | ||
ENV NTP_ARCHIVE=https://downloads.nwtime.org/ntp/4.2.8/${NTP_VERSION}.tar.gz | ||
|
||
WORKDIR /tmp | ||
|
||
RUN set -x \ | ||
&& apt update \ | ||
&& apt install -y build-essential wget | ||
|
||
RUN set -x \ | ||
&& wget "${NTP_ARCHIVE}" \ | ||
&& tar xvzf "${NTP_VERSION}.tar.gz" \ | ||
&& mv "${NTP_VERSION}" ntp \ | ||
&& cd ntp \ | ||
&& ./configure --without-crypto \ | ||
&& make \ | ||
&& cd util \ | ||
&& make tg2 \ | ||
&& chmod +x tg2 | ||
|
||
# FROM debian:stable-slim AS build | ||
# | ||
# ENV NTP_VERSION=ntp-4.2.8p18 | ||
# ENV NTP_ARCHIVE=https://downloads.nwtime.org/ntp/4.2.8/${NTP_VERSION}.tar.gz | ||
# | ||
# WORKDIR /tmp | ||
# | ||
# RUN set -x \ | ||
# && apt update \ | ||
# && apt install -y build-essential wget | ||
# | ||
# RUN set -x \ | ||
# && wget "${NTP_ARCHIVE}" \ | ||
# && tar xvzf "${NTP_VERSION}.tar.gz" \ | ||
# && mv "${NTP_VERSION}" ntp \ | ||
# && cd ntp \ | ||
# && ./configure --without-crypto \ | ||
# && make \ | ||
# && cd util \ | ||
# && make tg2 \ | ||
# && chmod +x tg2 | ||
# | ||
FROM debian:stable-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=build /tmp/ntp/util/tg2 /app/tg2 | ||
|
||
|
||
ENTRYPOINT ["/app/tg2"] | ||
# COPY --from=build /tmp/ntp/util/tg2 /app/tg2 | ||
# | ||
# | ||
# ENTRYPOINT ["/app/tg2"] |