feat: Add basic frontend
Some checks failed
MegaLinter / MegaLinter (pull_request) Has been cancelled
Update website / update (pull_request) Has been cancelled

This commit is contained in:
Piotr Gaczkowski 2026-03-24 15:39:18 +01:00
parent 2a2b5973df
commit a5ec38f3a3
25 changed files with 247 additions and 28 deletions

View file

@ -1,15 +1,20 @@
FROM python:3.11
# Build stage
FROM python:3.11 AS builder
RUN mkdir /app
COPY / /app
COPY pyproject.toml poetry.lock /app/
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-install-project
COPY . .
RUN uv sync
ENV PYTHONPATH=${PYTHONPATH}:${PWD}
RUN pip install poetry
# Runtime stage
FROM python:3.11-slim
RUN poetry config virtualenvs.create false
RUN poetry install --only main
WORKDIR /app
COPY --from=builder /app/ /app/
ENV PATH="/app/.venv/bin:$PATH"
CMD ["fastapi", "dev", "--host", "0.0.0.0", "--port", "31337", "labeler/adapter/fastapi_srv.py" ]