mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-25 23:32:49 +00:00
host-timesync-daemon: Use Go Modules
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
This commit is contained in:
@@ -1,16 +1,9 @@
|
||||
FROM linuxkit/alpine:33063834cf72d563cd8703467836aaa2f2b5a300 AS mirror
|
||||
|
||||
RUN apk add --no-cache go musl-dev git
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin GO111MODULE=off
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
|
||||
ENV VIRTSOCK_COMMIT=f1e32d3189e0dbb81c0e752a4e214617487eb41f
|
||||
RUN mkdir -p $GOPATH/src/github.com/linuxkit && \
|
||||
cd $GOPATH/src/github.com/linuxkit && \
|
||||
git clone https://github.com/linuxkit/virtsock.git && \
|
||||
cd virtsock && \
|
||||
git checkout $VIRTSOCK_COMMIT
|
||||
|
||||
COPY . /go/src/host-timesync-daemon
|
||||
COPY . /go/src/host-timesync-daemon
|
||||
RUN go-compile.sh /go/src/host-timesync-daemon
|
||||
|
||||
FROM scratch
|
||||
|
Reference in New Issue
Block a user