Skip to content

Commit c5fefe1

Browse files
committed
build: change python version to 3.10 and fix app stage
1 parent d8a8f47 commit c5fefe1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dev.Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# An example using multi-stage image builds to create a final image without uv.
33

44
# First, build the application in the `/app` directory.
5-
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS builder
5+
FROM ghcr.io/astral-sh/uv:python3.10-bookworm-slim AS builder
66
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
77

88
# Disable Python downloads, because we want to use the system interpreter
@@ -20,7 +20,7 @@ COPY . /app
2020
RUN --mount=type=cache,target=/root/.cache/uv \
2121
uv sync --locked
2222

23-
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
23+
FROM ghcr.io/astral-sh/uv:python3.10-bookworm-slim
2424

2525
# Copy the application from the builder
2626
COPY --from=builder --chown=app:app /app /app
@@ -30,7 +30,7 @@ WORKDIR /app
3030
# Place executables in the environment at the front of the path
3131
ENV PATH="/app/.venv/bin:$PATH"
3232

33-
# Set the application stage to production
34-
ENV APP_STAGE="production"
33+
# Set the application stage to development
34+
ENV APP_STAGE="development"
3535

3636
CMD ["/bin/sh", "./docker/docker-entrypoint.sh"]

0 commit comments

Comments
 (0)