Last active
April 3, 2019 22:16
-
-
Save zombiezen/9f923cf8a8ca10c9af38068aa1d8f0a2 to your computer and use it in GitHub Desktop.
Revisions
-
zombiezen revised this gist
Apr 3, 2019 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,4 @@ FROM golang:1.12 AS build COPY go.mod go.sum m/ RUN cd m && go mod download COPY . srcroot -
zombiezen created this gist
Apr 3, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ FROM golang:1.12 AS build RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ && rm -rf /var/lib/apt/lists/* COPY go.mod go.sum m/ RUN cd m && go mod download COPY . srcroot RUN cd srcroot && go install -mod=readonly ./cmd/foo \ && go clean -modcache -cache std FROM debian:stretch-slim RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ && rm -rf /var/lib/apt/lists/* COPY --from=build /go/bin/foo /usr/bin/foo ENTRYPOINT ["/usr/bin/foo"]