14 lines
372 B
Docker
14 lines
372 B
Docker
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
COPY src/api/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY src/api/ ./src/api/
|
|
COPY src/web/ ./src/web/
|
|
COPY scripts/ ./scripts/
|
|
COPY migrations/ ./migrations/
|
|
COPY docs/ ./docs/
|
|
ENV STATIC_DIR=/app/src/web
|
|
ENV PORT=5556
|
|
EXPOSE 5556
|
|
CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "5556"]
|