Merge pull request #92 from TinsFox/main

chore: update npm registry
This commit is contained in:
fantasticit 2022-06-22 11:40:26 +08:00 committed by GitHub
commit d695302c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ COPY . /app/
WORKDIR /app WORKDIR /app
ARG EIP=mrdoc.fun ARG EIP=mrdoc.fun
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN npm config set registry http://registry.npm.taobao.org/ RUN npm config set registry https://registry.npmmirror.com
RUN npm i -g pm2 @nestjs/cli pnpm RUN npm i -g pm2 @nestjs/cli pnpm
RUN apk --no-cache add bash RUN apk --no-cache add bash
RUN sed -i "s/localhost/$EIP/g" /app/docker/prod-sample.yaml RUN sed -i "s/localhost/$EIP/g" /app/docker/prod-sample.yaml
@ -19,7 +19,7 @@ COPY --from=builder /app/output/ /app/
WORKDIR /app WORKDIR /app
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN npm config set registry http://registry.npm.taobao.org/ RUN npm config set registry https://registry.npmmirror.com
RUN set -x \ RUN set -x \
&& apk update \ && apk update \
&& apk add --no-cache tzdata redis \ && apk add --no-cache tzdata redis \