Files
gitea-codex/Dockerfile
Space-Banane eb00deb323
All checks were successful
ci / test (push) Successful in 27s
ci / publish (push) Successful in 1m6s
[fix]. Run migrations before app startup
2026-05-22 23:15:59 +02:00

21 lines
504 B
Docker

FROM python:3.12-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends git docker.io ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY pyproject.toml README.md /app/
COPY src /app/src
COPY alembic.ini /app/
COPY alembic /app/alembic
COPY docker/entrypoint.sh /app/docker/entrypoint.sh
RUN pip install --no-cache-dir .
RUN chmod +x /app/docker/entrypoint.sh
EXPOSE 8000
CMD ["/app/docker/entrypoint.sh"]