更新 Dockerfile
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user