ci: 添加构建 ci

This commit is contained in:
Junyan Qin
2024-11-10 16:27:50 +08:00
parent 54bbfc8eda
commit 73ffd67792
4 changed files with 45 additions and 6 deletions

View File

@@ -1,8 +1,19 @@
FROM node:22-alpine AS node
WORKDIR /app
COPY web ./web
RUN cd web && npm install && npm run build
FROM python:3.10.13-slim
WORKDIR /app
COPY . .
COPY --from=node /app/web/dist ./web/dist
RUN apt update \
&& apt install gcc -y \
&& python -m pip install -r requirements.txt \