Update Ali Source to Tencent

This commit is contained in:
jonny 2022-08-11 09:56:55 +08:00 committed by GitHub
parent 213d726615
commit e31b695584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ FROM node:18-alpine as builder
COPY . /app/ COPY . /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 https://registry.npmmirror.com RUN npm config set registry http://mirrors.cloud.tencent.com/npm/
RUN npm i -g pm2 @nestjs/cli pnpm RUN npm i -g pm2 @nestjs/cli pnpm
RUN apk --no-cache add bash dos2unix \ RUN apk --no-cache add bash dos2unix \
&& find . -name "*.sh" -exec dos2unix {} \; \ && find . -name "*.sh" -exec dos2unix {} \; \
@ -15,7 +15,7 @@ COPY --from=builder /app/docker/* /app/docker/
COPY --from=builder /app/output/ /app/ 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 https://registry.npmmirror.com RUN npm config set registry http://mirrors.cloud.tencent.com/npm/
RUN set -x \ RUN set -x \
&& apk update \ && apk update \
&& apk add --no-cache tzdata redis \ && apk add --no-cache tzdata redis \