Skip to content

Commit

Permalink
Docker support ui
Browse files Browse the repository at this point in the history
  • Loading branch information
CareyWang committed Mar 30, 2020
1 parent c1ecf27 commit 13eb812
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.13-alpine AS dependencies
WORKDIR /app
RUN go env -w GO111MODULE="on"
RUN go env -w GO111MODULE="on" && go env -w GOPROXY="https://goproxy.cn,direct"

COPY go.sum go.mod ./
RUN go mod tidy
Expand All @@ -13,5 +13,6 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o myurls main.go
FROM scratch
WORKDIR /app
COPY --from=build /app/myurls ./
COPY public/* ./public/
EXPOSE 8002
ENTRYPOINT ["/app/myurls"]

0 comments on commit 13eb812

Please sign in to comment.