Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion image/demo/buildkit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /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

COPY src /app/src
Expand Down
2 changes: 1 addition & 1 deletion image/demo/buildkit/Dockerfile.buildkit
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY package.json /app/

RUN --mount=type=cache,target=/app/node_modules,id=my_app_npm_module,sharing=locked \
--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

Expand Down
4 changes: 2 additions & 2 deletions image/multistage-builds/laravel.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ FROM node:alpine as frontend
COPY package.json /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 resources/ /app/resources/
Expand Down Expand Up @@ -179,7 +179,7 @@ FROM node:alpine as frontend
COPY package.json /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 resources/ /app/resources/
Expand Down