fix docker makefile; broke from bitrot since nobody's using it

(the podman approach (make.sh) is recommended)
This commit is contained in:
ed
2026-05-07 18:15:59 +00:00
parent b009c585a6
commit 2a4c82c742
3 changed files with 14 additions and 3 deletions
+6 -1
View File
@@ -6,7 +6,12 @@ all:
rm -rf i
mkdir i
tar -cC../.. dist/copyparty-sfx.py bin/mtag | tar -xvCi
tar -cC../../dist copyparty-sfx.py | tar -xvCi
tar -cC../.. bin/mtag | tar -xvCi
# # use stock ffmpeg because ./base/Makefile requires podman;
# # beware: https://github.com/9001/copyparty/blob/hovudstraum/docs/bad-codecs.md
touch i/stock_ffmpeg
docker build -t copyparty/min:latest -f Dockerfile.min .
echo 'scale=1;'`docker save copyparty/min:latest | pigz -c | wc -c`/1024/1024 | bc
+4 -1
View File
@@ -14,8 +14,11 @@ ised() {
tmv "$2"
}
# use stock ffmpeg if requested
echo $1 | grep -qE 'ac|iv|dj' && [ -e "/z/stock_ffmpeg" ] && apk add ffmpeg
# use custom ffmpeg if relevant
echo $1 | grep -qE 'ac|iv|dj' && (
echo $1 | grep -qE 'ac|iv|dj' && [ ! -e "/z/stock_ffmpeg" ] && (
cp -pv /z/packages/*.pub /etc/apk/keys/
cd /z/packages/$(cat /etc/apk/arch)
apk add ./ffmpeg-*.apk