feat: Add basic frontend
This commit is contained in:
parent
2a2b5973df
commit
cebafd3cec
27 changed files with 2762 additions and 1485 deletions
23
Dockerfile
23
Dockerfile
|
|
@ -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" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue