修改npm
This commit is contained in:
parent
5284e16cb4
commit
10926f6af7
|
|
@ -8,7 +8,10 @@ RUN apt-get update && \
|
|||
COPY ./docker/nginx/web /build
|
||||
WORKDIR /build
|
||||
|
||||
RUN npm --registry=https://registry.npmmirror.com install
|
||||
RUN npm config set registry https://registry.npmmirror.com && \
|
||||
npm config set fetch-timeout 600000 && \
|
||||
npm config set fetch-retries 5 && \
|
||||
npm install --verbose
|
||||
RUN npm run build:prod
|
||||
|
||||
WORKDIR /src/main/resources
|
||||
|
|
|
|||
|
|
@ -8,7 +8,10 @@ RUN apt-get update && \
|
|||
COPY ./docker/nginx/web /build
|
||||
WORKDIR /build
|
||||
|
||||
RUN npm --registry=https://registry.npmmirror.com install
|
||||
RUN npm config set registry https://registry.npmmirror.com && \
|
||||
npm config set fetch-timeout 600000 && \
|
||||
npm config set fetch-retries 5 && \
|
||||
npm install --verbose
|
||||
RUN npm run build:prod
|
||||
|
||||
WORKDIR /src/main/resources
|
||||
|
|
|
|||
Loading…
Reference in New Issue