File tree Expand file tree Collapse file tree 6 files changed +18
-12
lines changed Expand file tree Collapse file tree 6 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ LABEL \
1515 org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.'
1616
1717ARG GRAALVM_VERSION=25.0.1
18- ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64 .tar.gz
18+ ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH .tar.gz
1919ARG TEMP_REGION=""
2020
2121WORKDIR /app
@@ -32,7 +32,8 @@ RUN set -eux \
3232
3333RUN set -eux \
3434 && mkdir -p /opt/graalpy-$GRAALVM_VERSION \
35- && curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1
35+ && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \
36+ && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi
3637
3738
3839RUN graalpy -m venv graalenv \
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ LABEL \
1414 org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.'
1515
1616ARG GRAALVM_VERSION=25.0.1
17- ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64 .tar.gz
17+ ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH .tar.gz
1818ARG TEMP_REGION=""
1919
2020WORKDIR /app
@@ -31,7 +31,8 @@ RUN set -eux \
3131
3232RUN set -eux \
3333 && mkdir -p /opt/graalpy-$GRAALVM_VERSION \
34- && curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1
34+ && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \
35+ && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi
3536
3637RUN graalpy -m venv graalenv \
3738 && echo "source graalenv/bin/activate" >> ~/.bashrc
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ LABEL \
1515 org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.'
1616
1717ARG GRAALVM_VERSION=25.0.1
18- ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64 .tar.gz
18+ ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH .tar.gz
1919ARG TEMP_REGION=""
2020
2121WORKDIR /app
@@ -32,7 +32,8 @@ RUN set -eux \
3232
3333RUN set -eux \
3434 && mkdir -p /opt/graalpy-$GRAALVM_VERSION \
35- && curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1
35+ && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \
36+ && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi
3637
3738RUN graalpy -m venv graalenv \
3839 && echo "source graalenv/bin/activate" >> ~/.bashrc
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ LABEL \
1515 org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.'
1616
1717ARG GRAALVM_VERSION=25.0.1
18- ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64 .tar.gz
18+ ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH .tar.gz
1919ARG TEMP_REGION=""
2020
2121WORKDIR /app
@@ -32,7 +32,8 @@ RUN set -eux \
3232
3333RUN set -eux \
3434 && mkdir -p /opt/graalpy-$GRAALVM_VERSION \
35- && curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1
35+ && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \
36+ && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi
3637
3738RUN graalpy -m venv graalenv \
3839 && echo "source graalenv/bin/activate" >> ~/.bashrc
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ LABEL \
1515 org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.'
1616
1717ARG GRAALVM_VERSION=25.0.1
18- ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64 .tar.gz
18+ ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH .tar.gz
1919ARG TEMP_REGION=""
2020
2121WORKDIR /app
@@ -32,7 +32,8 @@ RUN set -eux \
3232
3333RUN set -eux \
3434 && mkdir -p /opt/graalpy-$GRAALVM_VERSION \
35- && curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1
35+ && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \
36+ && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi
3637
3738
3839RUN graalpy -m venv graalenv \
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ LABEL \
1414 org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.'
1515
1616ARG GRAALVM_VERSION=25.0.1
17- ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64 .tar.gz
17+ ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH .tar.gz
1818ARG TEMP_REGION=""
1919
2020WORKDIR /app
@@ -31,7 +31,8 @@ RUN set -eux \
3131
3232RUN set -eux \
3333 && mkdir -p /opt/graalpy-$GRAALVM_VERSION \
34- && curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1
34+ && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \
35+ && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi
3536
3637RUN graalpy -m venv graalenv \
3738 && echo "source graalenv/bin/activate" >> ~/.bashrc
You can’t perform that action at this time.
0 commit comments