Files
brackets/backend/Dockerfile
T
WilliamSoderberg Verified b555f16238
Test and Release / test-backend (release) Successful in 7s
Test and Release / test-frontend (release) Successful in 12s
Test and Release / test-backend (push) Successful in 6s
Test and Release / test-frontend (push) Successful in 12s
Test and Release / build-docker (backend) (push) Skipped
Test and Release / build-docker (frontend) (push) Skipped
Test and Release / build-docker (backend) (release) Successful in 10s
Test and Release / build-docker (frontend) (release) Successful in 10s
Fixed database migration config to be copied to docker image.
2026-08-29 21:11:15 +02:00

20 lines
426 B
Docker

FROM python:3.14-alpine
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PORT=8080
ENV PYTHONPATH=/app
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY alembic.ini .
COPY ./alembic ./alembic
COPY ./app ./app
RUN mkdir -p /app/data
EXPOSE $PORT
CMD ["sh", "-c", "alembic upgrade head && gunicorn -w 1 -k uvicorn.workers.UvicornWorker app.main:app --bind 0.0.0.0:$PORT"]