diff --git a/Dockerfile b/Dockerfile index 5b9e03f..b23a591 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,6 @@ -# Install uv -FROM python:3.13-slim -COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ - -# Install git -RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* +# syntax=docker/dockerfile:1 +# check=error=true +FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim@sha256:73c021c3fe7264924877039e8a449ad3bb380ec89214282301affa9b2f863c5d # Change the working directory to the `app` directory WORKDIR /app @@ -13,9 +10,6 @@ RUN --mount=type=cache,target=/root/.cache/uv \ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ uv sync --no-install-project -# Uninstall git to reduce image size -RUN apt-get purge -y --auto-remove git - # Copy the application files ADD main.py misc.py settings.py /app/