Skip to content

Instantly share code, notes, and snippets.

@azhuox
Created December 2, 2020 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azhuox/78a96ec70c03a545e6d55bfbceb2855e to your computer and use it in GitHub Desktop.
Save azhuox/78a96ec70c03a545e6d55bfbceb2855e to your computer and use it in GitHub Desktop.
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