gunicorn
This commit is contained in:
@@ -11,8 +11,10 @@ RUN npm install --registry=https://registry.npmmirror.com
|
||||
# 复制项目文件
|
||||
COPY . .
|
||||
|
||||
# 接收构建参数
|
||||
ARG VITE_API_URL=http://localhost:8000/api
|
||||
# 设置环境变量供构建时使用
|
||||
ENV VITE_API_URL=http://localhost:8000/api
|
||||
ENV VITE_API_URL=$VITE_API_URL
|
||||
|
||||
# 构建生产环境代码
|
||||
RUN npm run build
|
||||
|
||||
Reference in New Issue
Block a user