Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM golang:latest AS build
- WORKDIR $GOPATH/{your-repo}
- COPY . ./
- RUN go get github.com/tools/godep
- RUN godep get
- RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /app .
- FROM scratch
- COPY --from=build /app ./
- ENTRYPOINT ["./app"]
Add Comment
Please, Sign In to add comment