@@ -57,7 +57,7 @@ COPY ${CODESERVER_SOURCE_CODE}/devel_env_setup.sh ./
5757# the final stage with the necessary permissions to consume from cache
5858RUN --mount=type=cache,target=/root/.cache/uv \
5959 pip install --no-cache-dir uv && \
60- # the devel script is ppc64le specific - sets up build-time dependencies
60+ # the devel script is ppc64le and s390x specific - sets up build-time dependencies
6161 source ./devel_env_setup.sh && \
6262 # This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
6363 # we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
@@ -90,7 +90,7 @@ RUN dnf -y upgrade --refresh --nobest --skip-broken --nodocs --noplugins --setop
9090# upgrade first to avoid fixable vulnerabilities end
9191
9292# Install useful OS packages
93- RUN dnf install -y perl mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum
93+ RUN dnf install -y tar perl mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/dnf
9494
9595# (ARCH-ppc64le): since wheels are compiled from source, we need shared libs available at runtime
9696RUN --mount=type=cache,from=whl-cache,source=/root/OpenBLAS,target=/OpenBlas,rw \
@@ -139,9 +139,9 @@ USER 0
139139WORKDIR /opt/app-root/bin
140140
141141# Install useful OS packages
142- RUN dnf install -y jq git-lfs libsndfile && dnf clean all && rm -rf /var/cache/yum
142+ RUN dnf install -y jq git-lfs libsndfile && dnf clean all && rm -rf /var/cache/dnf
143143
144- # wait for rpm-base stage (rpm builds for ppc64le)
144+ # wait for rpm-base stage (rpm builds for ppc64le and s390x )
145145COPY --from=rpm-base /tmp/control /dev/null
146146
147147# Install code-server
@@ -253,7 +253,7 @@ COPY --from=whl-cache /tmp/control /dev/null
253253RUN --mount=type=cache,target=/root/.cache/uv \
254254 --mount=type=cache,from=whl-cache,source=/wheelsdir/,target=/wheelsdir/,rw \
255255 bash -c ' \
256- if [[ $(uname -m) == "ppc64le" ]]; then \
256+ if [[ $(uname -m) == "ppc64le" ]] || [[ $(uname -m) == "s390x" ]] ; then \
257257 uv pip install /wheelsdir/*.whl; \
258258 fi '
259259# install packages as USER 0 (this will allow us to consume uv cache)
0 commit comments