Skip to content

Commit

Permalink
Fix Dockerfile.
Browse files Browse the repository at this point in the history
Signed-off-by: Revital Sur <[email protected]>
  • Loading branch information
revit13 committed Jul 14, 2024
1 parent 377041a commit f6e556d
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions transforms/universal/noop/ray/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
ARG BASE_IMAGE=docker.io/rayproject/ray:2.24.0-py310
FROM ${BASE_IMAGE}

# Declare stage using linux/amd64 base image
FROM --platform=linux/amd64 ${BASE_IMAGE} AS stage-amd64
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

# Declare stage using linux/arm64 base image
FROM --platform=linux/arm64 ${BASE_IMAGE}-aarch64 AS stage-arm64
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

# Declare TARGETARCH to make it available
ARG TARGETARCH

# Select final stage based on TARGETARCH ARG
FROM stage-${TARGETARCH} AS final

RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"
# install pytest
RUN pip install --no-cache-dir pytest

Expand Down Expand Up @@ -29,7 +43,7 @@ COPY test/ test/
COPY test-data/ test-data/

# Set environment
ENV PYTHONPATH /home/ray
ENV PYTHONPATH=/home/ray

# Put these at the end since they seem to upset the docker cache.
ARG BUILD_DATE
Expand Down

0 comments on commit f6e556d

Please sign in to comment.