Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjiang1989 authored Mar 5, 2024
1 parent 2493e70 commit 2830179
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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 http://mirrors.cloud.tencent.com/npm/
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
# 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 {} \; \
Expand All @@ -14,8 +14,8 @@ ENV TZ=Asia/Shanghai
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 http://mirrors.cloud.tencent.com/npm/
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
# RUN npm config set registry http://mirrors.cloud.tencent.com/npm/
RUN set -x \
&& apk update \
&& apk add --no-cache tzdata redis \
Expand Down

0 comments on commit 2830179

Please sign in to comment.