Created
May 16, 2018 02:47
-
-
Save ayosec/d261ce58d2b30a0cdb5ce5c89e207614 to your computer and use it in GitHub Desktop.
This file contains 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 characters
FROM golang:1.10-alpine | |
COPY . /go/src/pathtocode | |
WORKDIR /go/src/pathtocode/ | |
RUN go build main.go | |
FROM alpine:3.7 | |
RUN apk add --no-cache ca-certificates | |
COPY --from=0 /go/src/pathtocode/main . | |
CMD ["./main"] | |
# vim ft=Dockerfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment