Update Dockerfile

This commit is contained in:
2024-12-22 05:04:53 +01:00
parent a26e3ebf08
commit d8b619e093

View File

@ -1,5 +1,5 @@
# Install uv # Install uv
FROM python:3.12-slim FROM python:3.13-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Change the working directory to the `app` directory # Change the working directory to the `app` directory
@ -12,7 +12,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-install-project uv sync --frozen --no-install-project
# Copy the project into the image # Copy the project into the image
ADD . /app ADD main.py misc.py pyproject.toml uv.lock /app/
# Sync the project # Sync the project
RUN --mount=type=cache,target=/root/.cache/uv \ RUN --mount=type=cache,target=/root/.cache/uv \