Bladeren bron

refactor: relocate China npm registry config to base image (#24678)

tags/1.8.1
17hz 2 maanden geleden
bovenliggende
commit
62892ed8d7
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3
    3
      web/Dockerfile

+ 3
- 3
web/Dockerfile Bestand weergeven

@@ -5,6 +5,9 @@ LABEL maintainer="takatost@gmail.com"
# if you located in China, you can use aliyun mirror to speed up
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories

# if you located in China, you can use taobao registry to speed up
# RUN npm config set registry https://registry.npmmirror.com

RUN apk add --no-cache tzdata
RUN corepack enable
ENV PNPM_HOME="/pnpm"
@@ -22,9 +25,6 @@ COPY pnpm-lock.yaml .
# Use packageManager from package.json
RUN corepack install

# if you located in China, you can use taobao registry to speed up
# RUN pnpm install --frozen-lockfile --registry https://registry.npmmirror.com/

RUN pnpm install --frozen-lockfile

# build resources

Laden…
Annuleren
Opslaan