Some checks failed
Deploy to Production / deploy (push) Failing after 1m24s
- Containerfile.backend/frontend for Docker builds - docker-compose.prod.yml (PostgreSQL + API:8100 + Dashboard:4000) - Gitea Actions workflow for auto-deploy on push to main - Frontend dev port changed to 3100 Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
24 lines
452 B
Docker
24 lines
452 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY main.py .
|
|
COPY src/ ./src/
|
|
COPY alembic/ ./alembic/
|
|
COPY alembic.ini .
|
|
COPY scripts/ ./scripts/
|
|
|
|
ENV PYTHONPATH=/app
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|