Files
linuxkit/pkg/host-timesync-daemon/Dockerfile
2023-01-05 07:26:50 +02:00

15 lines
410 B
Docker

FROM linuxkit/alpine:316c3f9d85c21fdd8bc7479e81d290f85bf60eb0 AS mirror
RUN apk add --no-cache go musl-dev git
ENV GOPATH=/go PATH=$PATH:/go/bin
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"]