FROM docker.io/library/python:3.12.11-slim WORKDIR /srv/finance COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app/ app/ COPY alembic/ alembic/ COPY alembic.ini . COPY VERSION . COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh EXPOSE 8000 ENTRYPOINT ["/entrypoint.sh"]