mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-06 17:32:26 +00:00
17 lines
471 B
Docker
17 lines
471 B
Docker
FROM linuxkit/alpine:146f540f25cd92ec8ff0c5b0c98342a9a95e479e AS mirror
|
|
|
|
RUN apk add --no-cache go musl-dev git
|
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
|
ARG GOPKGVERSION
|
|
ENV ldflags="-X main.Version=$GOPKGVERSION"
|
|
|
|
COPY . /go/src/host-timesync-daemon
|
|
RUN go-compile.sh /go/src/host-timesync-daemon
|
|
|
|
FROM scratch
|
|
ENTRYPOINT []
|
|
CMD []
|
|
WORKDIR /
|
|
COPY --from=mirror /go/bin/host-timesync-daemon /usr/bin/host-timesync-daemon
|
|
CMD ["/usr/bin/host-timesync-daemon", "-port", "0xf3a4"]
|