Files
forwarder/Dockerfile
T
1sonhador d1e4725ac3 Add Python API, worker, MySQL migrations and wire admin-ui in Docker.
Backend FastAPI + APScheduler worker with Alembic schema; admin-ui served
via nginx with /api proxy. Unifies Paperclip UI scaffold with local platform code.
2026-07-01 00:04:57 +01:00

24 lines
496 B
Docker

FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
default-libmysqlclient-dev \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml README.md ./
COPY src ./src
COPY alembic.ini ./
COPY migrations ./migrations
RUN pip install --no-cache-dir -e .
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app/src
EXPOSE 8000
CMD ["uvicorn", "forwarder.api.app:app", "--host", "0.0.0.0", "--port", "8000", "--app-dir", "src"]