jim60105 / docker-static-ffmpeg-upx

This is the UPX compressed wader/static-ffmpeg (Dockerfile, CI image build)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-static-ffmpeg-upx

CodeFactor

This is the wader/static-ffmpeg compressed with UPX.

After UPX compression, the binary size is reduced to about 26%.

2024-05-05-182446

2024-05-05-182008

I did nothing except compress. I created this image mainly for my other projects that uses static-ffmpeg. Also added the compressed dumb-init since I often use it together.

Thanks for all the great works by wader/static-ffmpeg. Please refer to his project and my Dockerfile for all technical information.

Usage

Get the Dockerfile at GitHub, or pull the image from ghcr.io or quay.io.

In Dockerfile

COPY --from=jim60105/static-ffmpeg-upx:7.0-1 /ffmpeg /usr/local/bin/
COPY --from=jim60105/static-ffmpeg-upx:7.0-1 /ffprobe /usr/local/bin/

Run directly

docker run -i --rm -u $UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" ghcr.io/jim60105/static-ffmpeg-upx:7.0-1 -i file.wav file.mp3
docker run -i --rm -u $UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" --entrypoint=/ffprobe ghcr.io/jim60105/static-ffmpeg-upx:7.0-1 -i file.wav

As shell alias

alias ffmpeg='docker run -i --rm -u $UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" ghcr.io/jim60105/static-ffmpeg-upx:7.0-1'
alias ffprobe='docker run -i --rm -u $UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" --entrypoint=/ffprobe ghcr.io/jim60105/static-ffmpeg-upx:7.0-1'

LICENSE

Note

The main program, wader/static-ffmpeg, is distributed under MIT.
Please consult their repository for access to the source code and licenses.
The following is the license for the Dockerfiles and CI workflows in this repository.

The Dockerfile and CI workflow files in this repository are licensed under the MIT license.

About

This is the UPX compressed wader/static-ffmpeg (Dockerfile, CI image build)

License:MIT License


Languages

Language:Dockerfile 100.0%