File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
66ENV 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
2020RUN --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
2626COPY --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
3131ENV 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
3636CMD ["/bin/sh" , "./docker/docker-entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments