mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-24 07:23:38 +00:00
Merge pull request #497 from npmmirror/master
Update https://registry.npm.taobao.org to https://registry.npmmirror.com
This commit is contained in:
commit
d4c6e590c6
@ -4,7 +4,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY package.json /app/
|
COPY package.json /app/
|
||||||
|
|
||||||
RUN npm i --registry=https://registry.npm.taobao.org \
|
RUN npm i --registry=https://registry.npmmirror.com \
|
||||||
&& rm -rf ~/.npm
|
&& rm -rf ~/.npm
|
||||||
|
|
||||||
COPY src /app/src
|
COPY src /app/src
|
||||||
|
@ -8,7 +8,7 @@ COPY package.json /app/
|
|||||||
|
|
||||||
RUN --mount=type=cache,target=/app/node_modules,id=my_app_npm_module,sharing=locked \
|
RUN --mount=type=cache,target=/app/node_modules,id=my_app_npm_module,sharing=locked \
|
||||||
--mount=type=cache,target=/root/.npm,id=npm_cache \
|
--mount=type=cache,target=/root/.npm,id=npm_cache \
|
||||||
npm i --registry=https://registry.npm.taobao.org
|
npm i --registry=https://registry.npmmirror.com
|
||||||
|
|
||||||
COPY src /app/src
|
COPY src /app/src
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ FROM node:alpine as frontend
|
|||||||
COPY package.json /app/
|
COPY package.json /app/
|
||||||
|
|
||||||
RUN set -x ; cd /app \
|
RUN set -x ; cd /app \
|
||||||
&& npm install --registry=https://registry.npm.taobao.org
|
&& npm install --registry=https://registry.npmmirror.com
|
||||||
|
|
||||||
COPY webpack.mix.js webpack.config.js tailwind.config.js /app/
|
COPY webpack.mix.js webpack.config.js tailwind.config.js /app/
|
||||||
COPY resources/ /app/resources/
|
COPY resources/ /app/resources/
|
||||||
@ -179,7 +179,7 @@ FROM node:alpine as frontend
|
|||||||
COPY package.json /app/
|
COPY package.json /app/
|
||||||
|
|
||||||
RUN set -x ; cd /app \
|
RUN set -x ; cd /app \
|
||||||
&& npm install --registry=https://registry.npm.taobao.org
|
&& npm install --registry=https://registry.npmmirror.com
|
||||||
|
|
||||||
COPY webpack.mix.js webpack.config.js tailwind.config.js /app/
|
COPY webpack.mix.js webpack.config.js tailwind.config.js /app/
|
||||||
COPY resources/ /app/resources/
|
COPY resources/ /app/resources/
|
||||||
|
Loading…
Reference in New Issue
Block a user