Skip to content

Commit

Permalink
修改Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
icowan committed Feb 12, 2020
1 parent 81c9458 commit 93e60df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.13.0-alpine3.10 as build-env
FROM golang:1.13.4-alpine3.10 as build-env

ENV GO111MODULE=on
ENV GOPROXY=http://goproxy.yrd.creditease.corp
ENV GOPROXY=http://goproxy.io
ENV BUILDPATH=github.com/nsini/blog
RUN mkdir -p /go/src/${BUILDPATH}
COPY ./ /go/src/${BUILDPATH}
Expand All @@ -13,4 +13,4 @@ COPY --from=build-env /go/bin/blog /go/bin/blog
COPY ./views /go/bin/
COPY ./static /go/bin/
WORKDIR /go/bin/
CMD ["/go/bin/blog"]
CMD ["/go/bin/blog", "start", "-p", ":8080", "-c", "/etc/blog/app.cfg"]

0 comments on commit 93e60df

Please sign in to comment.