Skip to content

Commit

Permalink
The static ELF file is too large! Use UPX to compress it!
Browse files Browse the repository at this point in the history
  • Loading branch information
eritpchy committed Sep 29, 2023
1 parent a26efce commit 0ae662d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Build/Docker/cpu_static/build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ RUN cd /tmp/work/videosubfinder-src \
&& cmake --build . --config Release -j $(nproc) \
&& cp ./Interfaces/VideoSubFinderCli/VideoSubFinderCli /tmp/work/ \
&& rm -rf /tmp/work/videosubfinder-src

RUN --mount=type=cache,target=/var/cache/apt \
DEBIAN_FRONTEND=noninteractive apt install -y upx-ucl \
&& cd /tmp/work \
&& mv ./VideoSubFinderCli ./VideoSubFinderCli.1 \
&& upx -f -o ./VideoSubFinderCli ./VideoSubFinderCli.1 \
&& rm -fv ./VideoSubFinderCli.1 \
&& true

0 comments on commit 0ae662d

Please sign in to comment.