Skip to content

Commit

Permalink
feat: 删除镜像源的使用,因为使用 actions 编译
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Aug 27, 2024
1 parent de6cb90 commit 8059ee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
FROM alpine:latest

# 更改apk软件源为清华大学镜像并更新软件包
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && \
apk update && \
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && \
RUN apk update && \
apk add --no-cache \
build-base \
python3 \
Expand All @@ -13,7 +13,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/re
nodejs

# 设置镜像源
RUN npm config set registry https://registry.npmmirror.com
# RUN npm config set registry https://registry.npmmirror.com

# 复制项目文件到容器中
WORKDIR /app
Expand Down

0 comments on commit 8059ee6

Please sign in to comment.