FROM docker.io/python:3.11-slim-bookworm COPY --from=ghcr.io/astral-sh/uv:0.5.25 /uv /uvx /bin/ # Copy the project into the image ADD . /app # Sync the project into a new environment, using the frozen lockfile WORKDIR /app RUN uv sync --frozen RUN mkdir /app/db RUN uv run manage.py migrate VOLUME /app/db EXPOSE 8000 CMD [ "uv", "run", "manage.py", "runserver" ]