更新 Dockerfile

This commit is contained in:
ywp
2025-10-22 15:33:26 +08:00
parent 31d01fe1e4
commit cf765c0543

View File

@ -34,7 +34,10 @@ RUN if [ -f package.json ]; then npm ci --omit=dev; fi
FROM docker.1ms.run/nginx:1.27-alpine
# 安装 Node.js给后端运行
RUN apk add --no-cache nodejs npm bash
# 更换为国内源(清华或阿里云)
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk update \
&& apk add --no-cache nodejs npm bash
WORKDIR /app