mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-30 20:13:20 -04:00
code-server-powershell: multi-arch
This commit is contained in:
+9
-3
@@ -9,10 +9,16 @@ RUN \
|
||||
PS_VERSION=$(curl -sX GET "https://api.github.com/repos/PowerShell/PowerShell/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]' | awk '{print substr($1,2); }'); \
|
||||
fi && \
|
||||
mkdir -p /root-layer && \
|
||||
mkdir -p /root-layer/powershell && \
|
||||
curl -o \
|
||||
/root-layer/powershell.deb -L \
|
||||
"https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/powershell_${PS_VERSION}-1.ubuntu.18.04_amd64.deb"
|
||||
/root-layer/powershell/powershell_x86_64.tar.gz -L \
|
||||
"https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/powershell_${PS_VERSION}-linux-x64.tar.gz" && \
|
||||
curl -o \
|
||||
/root-layer/powershell/powershell_armv7l.tar.gz -L \
|
||||
"https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/powershell_${PS_VERSION}-linux-arm32.tar.gz" && \
|
||||
curl -o \
|
||||
/root-layer/powershell/powershell_aarch64.tar.gz -L \
|
||||
"https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/powershell_${PS_VERSION}-linux-arm64.tar.gz"
|
||||
|
||||
COPY root/ /root-layer/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user