Skip to content

Commit

Permalink
Merge branch 'pyproject-v2' into pyproject-v2-fix-more-stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
desertaxle authored Feb 12, 2025
2 parents fa95730 + 59880f2 commit 4e6dec7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ FROM ${BASE_IMAGE} AS final
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

ENV UV_COMPILE_BYTECODE=1
ENV UV_LINK_MODE=copy
ENV UV_SYSTEM_PYTHON=1

Expand All @@ -103,16 +104,11 @@ RUN apt-get update && \
# Install UV from official image - pin to specific version for build caching
COPY --from=ghcr.io/astral-sh/uv:0.5.30 /uv /bin/uv

# Install dependencies from pyproject.toml
COPY pyproject.toml .
RUN --mount=type=cache,target=/root/.cache/uv \
uv pip install ".[client,otel]"

# Install prefect from the sdist
COPY --from=python-builder /opt/prefect/dist ./dist

# Extras to include during installation
ARG PREFECT_EXTRAS=[redis]
ARG PREFECT_EXTRAS=[redis,client,otel]
RUN --mount=type=cache,target=/root/.cache/uv \
uv pip install "./dist/prefect.tar.gz${PREFECT_EXTRAS:-""}" && \
rm -rf dist/
Expand Down

0 comments on commit 4e6dec7

Please # to comment.