feat: 增加登录页面、学时查询和定时同步
This commit is contained in:
+21
@@ -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"]
|
||||
Reference in New Issue
Block a user