Skip to content

Commit

Permalink
add Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddycjy committed Oct 3, 2019
1 parent ba2be4b commit 725c0d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM golang:latest

ENV GOPROXY https://goproxy.cn,direct
WORKDIR $GOPATH/src/github.com/EDDYCJY/go-gin-example
COPY . $GOPATH/src/github.com/EDDYCJY/go-gin-example
RUN go build .

EXPOSE 8000
ENTRYPOINT ["./go-gin-example"]

0 comments on commit 725c0d0

Please sign in to comment.