docker构建使用加速镜像
This commit is contained in:
parent
b01f0aff38
commit
c885953c6d
@ -5,22 +5,24 @@ COPY ./VERSION .
|
||||
COPY ./web .
|
||||
|
||||
WORKDIR /web/default
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
RUN npm install
|
||||
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
||||
|
||||
WORKDIR /web/berry
|
||||
RUN npm install
|
||||
RUN npm install --force
|
||||
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
||||
|
||||
WORKDIR /web/air
|
||||
RUN npm install
|
||||
RUN npm install --force
|
||||
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
||||
|
||||
FROM golang AS builder2
|
||||
|
||||
ENV GO111MODULE=on \
|
||||
CGO_ENABLED=1 \
|
||||
GOOS=linux
|
||||
GOOS=linux \
|
||||
GOPROXY=https://goproxy.cn,direct
|
||||
|
||||
WORKDIR /build
|
||||
ADD go.mod go.sum ./
|
||||
|
Loading…
Reference in New Issue
Block a user