From 2ff1b8e821a714bf056a86657ed32ab009544017 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Tue, 9 Jan 2024 14:36:13 +0100 Subject: [PATCH] chore: install custom upx in docker that hopefully has less bugs --- .docker/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 6c45c909..81a10822 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -54,10 +54,12 @@ RUN apt install -y \ libgoogle-glog-dev \ libutfcpp-dev \ libflac++-dev \ - bash-completion \ - upx + bash-completion COPY install-static-libs.sh /usr/local/bin/install-static-libs.sh RUN bash /usr/local/bin/install-static-libs.sh +ARG ARCH +# upx-4.2.2 is broken for arm64 (https://github.com/upx/upx/issues/758) +RUN wget -O - https://github.com/upx/upx/releases/download/v4.2.1/upx-4.2.1-$(bash -c "echo \${0//v8/}" $ARCH)_linux.tar.xz | tar -xJf - -C /usr/local/bin --strip-components=1 --wildcards "*/upx" # RUN useradd -g users -u 1000 -m mhx ARG SCRIPT=build-linux.sh COPY $SCRIPT /usr/local/bin/run.sh