-
-
Save azhuox/78a96ec70c03a545e6d55bfbceb2855e 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.12-alpine3.9 | |
RUN apk add --update \ | |
ca-certificates \ | |
git | |
COPY . $GOPATH/src/github.com/azhuox/blogs/golang/go_modules/example/micro-service | |
RUN go build -o /usr/bin/micro-service github.com/azhuox/blogs/golang/go_modules/example/micro-service/server && rm -rf $GOPATH/* | |
ENTRYPOINT ["/usr/bin/micro-service"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment