test
This commit is contained in:
parent
efd21a7297
commit
441676be27
97 changed files with 10764 additions and 223 deletions
15
Dockerfile
15
Dockerfile
|
|
@ -1,3 +1,13 @@
|
|||
FROM node:20-alpine AS frontend-builder
|
||||
|
||||
WORKDIR /frontend
|
||||
|
||||
COPY frontend/package.json frontend/package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY frontend/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM python:3.12-slim AS base
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
|
|
@ -33,7 +43,9 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|||
UV_PROJECT_ENVIRONMENT=/opt/venv \
|
||||
PATH="/opt/venv/bin:$PATH" \
|
||||
APP_RELOAD=0 \
|
||||
UVICORN_WORKERS=1
|
||||
UVICORN_WORKERS=1 \
|
||||
FRONTEND_ENABLED=1 \
|
||||
FRONTEND_DIST_DIR=/app/frontend/dist
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
@ -51,4 +63,5 @@ COPY alembic ./alembic
|
|||
RUN uv sync --frozen
|
||||
|
||||
COPY scripts ./scripts
|
||||
COPY --from=frontend-builder /frontend/dist /app/frontend/dist
|
||||
ENTRYPOINT ["/bin/sh", "/app/scripts/entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue