更新代码并修改远程仓库地址

This commit is contained in:
史悦
2025-09-02 13:53:24 +08:00
parent 9471480c89
commit 4c6e03a59f
9 changed files with 132 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
# 阶段一: 构建Vue前端
FROM node:18-alpine as frontend-builder
FROM node:18-alpine AS frontend-builder
# 设置工作目录
WORKDIR /app/frontend
@@ -13,18 +13,21 @@ RUN npm ci
# 复制前端源代码
COPY frontend/ ./
# 确保node_modules中的可执行文件有正确权限
RUN chmod +x node_modules/.bin/*
# 构建前端应用
RUN npm run build
# 阶段二: 构建Python后端
FROM python:3.10-slim as backend-builder
FROM python:3.10-slim AS backend-builder
# 设置工作目录
WORKDIR /app
# 安装系统依赖和构建依赖
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libgl1 \
ca-certificates \
build-essential \
&& rm -rf /var/lib/apt/lists/*
@@ -43,7 +46,7 @@ WORKDIR /app
# 安装运行时依赖
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libgl1 \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*