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
20 lines
426 B
Docker
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"] |