Skip to content

Commit bcf35e2

Browse files
update codeserver Python 3.12 Dockerfile for TARGETARCH (#1357)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 8bfa058 commit bcf35e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codeserver/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ RUN curl -L https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/oc
2929
####################
3030
FROM base AS codeserver
3131

32+
ARG TARGETOS TARGETARCH
33+
3234
ARG CODESERVER_SOURCE_CODE=codeserver/ubi9-python-3.12
3335
ARG CODESERVER_VERSION=v4.98.0
3436

@@ -50,7 +52,7 @@ WORKDIR /opt/app-root/bin
5052
RUN dnf install -y jq git-lfs libsndfile && dnf clean all && rm -rf /var/cache/yum
5153

5254
# Install code-server
53-
RUN yum install -y "https://github.com/coder/code-server/releases/download/${CODESERVER_VERSION}/code-server-${CODESERVER_VERSION/v/}-amd64.rpm" && \
55+
RUN yum install -y "https://github.com/coder/code-server/releases/download/${CODESERVER_VERSION}/code-server-${CODESERVER_VERSION/v/}-${TARGETARCH}.rpm" && \
5456
yum -y clean all --enablerepo='*'
5557

5658
COPY --chown=1001:0 ${CODESERVER_SOURCE_CODE}/utils utils/

0 commit comments

Comments
 (0)