feat: 增加登录页面、学时查询和定时同步

This commit is contained in:
2026-10-26 12:10:02 +08:00
parent cb935f081e
commit 626f9eab5c
32 changed files with 2924 additions and 249 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM node:22-alpine AS web
WORKDIR /src/web
COPY web/package.json web/package-lock.json* ./
RUN npm install
COPY web/ ./
RUN npm run build
FROM python:3.13-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY euniv_client euniv_client
COPY app app
COPY worker worker
COPY alembic alembic
COPY alembic.ini .
COPY scripts scripts
COPY --from=web /src/web/dist web/dist
ENV EUNIV_DB_PATH=/data/euniv.db
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]