Docker support ui
This commit is contained in:
parent
c1ecf275d4
commit
13eb812c51
@ -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
|
||||
@ -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"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user