File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,16 @@ RUN if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" = "aarch64" ]; then \
4444
4545# Install ASDF
4646RUN ASDF_VERSION=$(awk '!/^#/ && NF {print $1; exit}' /tmp/.tool-versions.asdf) && \
47- wget -O /tmp/asdf.tar.gz https://github.com/asdf-vm/asdf/releases/download/v${ASDF_VERSION}/asdf-v${ASDF_VERSION}-linux-amd64.tar.gz; \
48- tar -xvzf /tmp/asdf.tar.gz; \
49- mv asdf /usr/bin
47+ if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" == "aarch64" ]; then \
48+ wget -O /tmp/asdf.tar.gz "https://github.com/asdf-vm/asdf/releases/download/v${ASDF_VERSION}/asdf-v${ASDF_VERSION}-linux-arm64.tar.gz" ; \
49+ else \
50+ wget -O /tmp/asdf.tar.gz "https://github.com/asdf-vm/asdf/releases/download/v${ASDF_VERSION}/asdf-v${ASDF_VERSION}-linux-amd64.tar.gz" ; \
51+ fi && \
52+ tar -xzf /tmp/asdf.tar.gz -C /tmp && \
53+ mkdir -p /usr/bin && \
54+ mv /tmp/asdf /usr/bin/asdf && \
55+ chmod +x /usr/bin/asdf && \
56+ rm -rf /tmp/asdf.tar.gz
5057
5158# specify DOCKER_GID to force container docker group id to match host
5259RUN if [ -n "${DOCKER_GID}" ]; then \
You can’t perform that action at this time.
0 commit comments