diff --git a/Dockerfile b/Dockerfile index 1c52e4fe..45bd75a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:18-alpine as builder COPY . /app/ WORKDIR /app 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 apk --no-cache add bash dos2unix \ && find . -name "*.sh" -exec dos2unix {} \; \ @@ -15,7 +15,7 @@ COPY --from=builder /app/docker/* /app/docker/ COPY --from=builder /app/output/ /app/ WORKDIR /app 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 \ && apk update \ && apk add --no-cache tzdata redis \