Files
waitlist/Dockerfile
Roberto Musso 77e02b4e86
Some checks failed
Test & Deploy Waitlist / test (push) Successful in 37s
Test & Deploy Waitlist / deploy (push) Failing after 51s
update building
2026-04-11 14:41:16 +02:00

20 lines
524 B
Docker

FROM python:3.12-slim
WORKDIR /srv
# Install only psycopg2 build deps (needed for alembic sync driver)
RUN apt-get update && \
apt-get install -y --no-install-recommends libpq-dev gcc && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt psycopg2-binary
COPY alembic.ini .
COPY alembic/ alembic/
COPY app/ app/
EXPOSE 8001
CMD ["sh", "-c", "alembic upgrade head && gunicorn app.main:app -k uvicorn.workers.UvicornWorker -w 2 -b 0.0.0.0:8001 --timeout 30"]