build: install latest gosu from published image (#3717)

This commit is contained in:
Geoff Bourne
2025-10-17 19:10:00 -05:00
committed by GitHub
parent 998b61de0d
commit 66f26c0ea8
7 changed files with 2 additions and 39 deletions
-1
View File
@@ -10,7 +10,6 @@ apk add --no-cache -U \
imagemagick \
file \
lsof \
su-exec \
coreutils \
findutils \
procps \
-22
View File
@@ -1,22 +0,0 @@
#!/bin/bash
set -euo pipefail
GOSU_VERSION="1.16"
GOSU_BASE_URL="https://github.com/tianon/gosu/releases/download/$GOSU_VERSION"
case $(uname -m) in
"aarch64")
GOSU_ARCH="gosu-arm64"
;;
"x86_64")
GOSU_ARCH="gosu-amd64"
;;
*)
echo "Architecture not supported!"
exit 1
;;
esac
curl -sL -o /bin/gosu "${GOSU_BASE_URL}/${GOSU_ARCH}"
chmod +x /bin/gosu
-3
View File
@@ -59,9 +59,6 @@ dnf install -y git-lfs
# Clean up DNF when done
dnf clean all
# Install gosu (assuming the script /build/ol/install-gosu.sh exists and is executable)
bash /build/ol/install-gosu.sh
# Download and install patched knockd
curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
-1
View File
@@ -11,7 +11,6 @@ DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
imagemagick \
file \
gosu \
sudo \
net-tools \
iputils-ping \