更改docker file
This commit is contained in:
parent
4414c982d1
commit
8fa7135b46
@ -2,6 +2,7 @@ FROM node:16 as builder
|
|||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY web/package.json .
|
COPY web/package.json .
|
||||||
|
RUN npm npm config set registry https://registry.npmmirror.com/
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY ./web .
|
COPY ./web .
|
||||||
COPY ./VERSION .
|
COPY ./VERSION .
|
||||||
@ -15,6 +16,8 @@ ENV GO111MODULE=on \
|
|||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
ADD go.mod go.sum ./
|
ADD go.mod go.sum ./
|
||||||
|
RUN go env -w GO111MODULE=on
|
||||||
|
RUN go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=builder /build/build ./web/build
|
COPY --from=builder /build/build ./web/build
|
||||||
|
Loading…
Reference in New Issue
Block a user