File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
root/etc/s6-overlay/s6-rc.d/init-mod-code-server-dotnet-add-package Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
22
3- FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
3+ FROM ghcr.io/linuxserver/baseimage-alpine:3.18 as buildstage
44
55ARG MOD_VERSION
66
@@ -18,14 +18,10 @@ RUN \
1818 DOTNET_RELEASE_URL=$(echo "${DOTNET_JSON}" | jq -r ".\" releases-index\" [] | select(.\" latest-sdk\" ==\" ${i}\" ) | .\" releases.json\" " ) && \
1919 DOTNET_RELEASE_JSON=$(curl -fSsLX GET "${DOTNET_RELEASE_URL}" ) && \
2020 AMD64_URL=$(echo "${DOTNET_RELEASE_JSON}" | jq -r ".releases[] | select(.sdk.version==\" ${i}\" ) | .sdk.files[] | select(.name | contains(\" linux-x64.tar.gz\" )) | .url" ) && \
21- ARM32_URL=$(echo "${DOTNET_RELEASE_JSON}" | jq -r ".releases[] | select(.sdk.version==\" ${i}\" ) | .sdk.files[] | select(.name | contains(\" linux-arm.tar.gz\" )) | .url" ) && \
2221 ARM64_URL=$(echo "${DOTNET_RELEASE_JSON}" | jq -r ".releases[] | select(.sdk.version==\" ${i}\" ) | .sdk.files[] | select(.name | contains(\" linux-arm64.tar.gz\" )) | .url" ) && \
2322 curl -fSL --retry 3 --retry-connrefused -o \
2423 /root-layer/dotnet/dotnetsdk_"${i}" _x86_64.tar.gz -L \
2524 "${AMD64_URL}" && \
26- curl -fSL --retry 3 --retry-connrefused -o \
27- /root-layer/dotnet/dotnetsdk_"${i}" _armv7l.tar.gz -L \
28- "${ARM32_URL}" && \
2925 curl -fSL --retry 3 --retry-connrefused -o \
3026 /root-layer/dotnet/dotnetsdk_"${i}" _aarch64.tar.gz -L \
3127 "${ARM64_URL}" || exit 1; \
Original file line number Diff line number Diff line change 22
33# Determine if setup is needed
44if [ -d /dotnet ]; then
5+ ARCH=$(uname -m)
6+ if [[ "${ARCH}" = "armv7l" ]]; then
7+ echo "**** The dotnet mod no longer supports arm32v7/armhf images, exiting ****"
8+ exit 0
9+ fi
510 # install deps
611 echo "**** Adding dotnet dependencies to package install list ****"
712 source /etc/lsb-release
@@ -16,7 +21,6 @@ if [ -d /dotnet ]; then
1621 rm -rf /dotnet_*
1722 fi
1823 DOTNET_VERSIONS=$(cat /dotnet/versions.txt)
19- ARCH=$(uname -m)
2024 for i in $DOTNET_VERSIONS; do
2125 mkdir -p "/dotnet_${i}"
2226 tar xzf "/dotnet/dotnetsdk_${i}_${ARCH}.tar.gz" -C "/dotnet_${i}"
You can’t perform that action at this time.
0 commit comments