Skip to content

Commit

Permalink
updated dockerfile for uv 2.0 (#22039)
Browse files Browse the repository at this point in the history
https://github.com/astral-sh/uv/releases/tag/0.2.0

## How I Tested These Changes

bk images build
  • Loading branch information
alangenfeld authored and salazarm committed May 22, 2024
1 parent 1f95022 commit d11bd69
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ FROM "${BASE_IMAGE}"
ARG DAGSTER_VERSION

COPY build_cache/ /
ENV VIRTUAL_ENV=/usr/local
RUN pip install -U uv
RUN uv pip install \
RUN python -m uv pip install \
-e dagster \
-e dagster-pipes \
-e dagster-graphql \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ ARG DAGSTER_VERSION

# All packages are hard-pinned to `dagster`, so setting the version on just `DAGSTER` will ensure
# compatible versions.
ENV VIRTUAL_ENV=/usr/local
RUN pip install -U uv
RUN uv pip install \
RUN python -m uv pip install \
dagster==${DAGSTER_VERSION} \
dagster-azure \
dagster-postgres \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ FROM "${BASE_IMAGE}"
ARG DAGSTER_VERSION

COPY build_cache/ /
ENV VIRTUAL_ENV=/usr/local
RUN pip install -U uv
RUN uv pip install \
RUN python -m uv pip install \
-e dagster \
-e dagster-pipes \
-e dagster-graphql \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ ARG DAGSTER_VERSION

# All packages are hard-pinned to `dagster`, so setting the version on just `DAGSTER` will ensure
# compatible versions.
ENV VIRTUAL_ENV=/usr/local
RUN pip install -U uv
RUN uv pip install \
RUN python -m uv pip install \
dagster==${DAGSTER_VERSION} \
dagster-azure \
dagster-postgres \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ ARG DAGSTER_VERSION

# All packages are hard-pinned to `dagster`, so setting the version on just `DAGSTER` will ensure
# compatible versions.
ENV VIRTUAL_ENV=/usr/local
RUN pip install -U uv
RUN uv pip install \
RUN python -m uv pip install \
dagster==${DAGSTER_VERSION} \
dagster-postgres \
dagster-aws \
Expand Down
3 changes: 1 addition & 2 deletions python_modules/dagster-test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ ENV DAGSTER_DISABLE_TELEMETRY=true
# This makes sure that logs show up immediately instead of being buffered
ENV PYTHONUNBUFFERED=1

ENV VIRTUAL_ENV=/usr/local
RUN pip install -U uv
# dagster-celery specified twice to deal with pip resolution in pip 20.3.3 when only
# extras are specified
RUN uv pip install \
RUN python -m uv pip install \
-e modules/dagster \
-e modules/dagster-graphql \
-e modules/dagster-celery \
Expand Down

0 comments on commit d11bd69

Please sign in to comment.