This commit is contained in:
aaron 2025-03-12 08:31:46 +08:00
parent a054f5052c
commit 8f91bbdddd

View File

@ -4,6 +4,8 @@ FROM node:18-alpine as build-stage
# 切换 Alpine 镜像源为阿里云
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
WORKDIR /app
# 设置环境变量
ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}