diff --git a/Dockerfile b/Dockerfile index 6743b139..ac3963e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ./