Skip to content

sollie/docker-upx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

107 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UPX Docker Image

Docker build status

Introduction

This repository contains a lightweight Docker image designed for use in multi-stage Docker builds. The image is based on the official busybox image and is built using a multi-stage process to minimize its size.

For more details about UPX, the powerful executable packer used in this image, please visit the UPX GitHub project.

How to Use

Standalone

To compress a file using this Docker image, execute the following command:

$ docker run --rm -w $PWD -v $PWD:$PWD ghcr.io/sollie/docker-upx:latest --best --lzma -o [output file name] [input file name]

Replace [output file name] with the name you want for your compressed file, and [input file name] with the name of the file you want to compress. The --best and --lzma options ensure optimal compression.

Multi-stage Dockerfile

COPY --from=ghcr.io/sollie/docker-upx:latest /usr/bin/upx /usr/bin/upx

RUN upx --best --lzma -o /compressed-binary /original-binary

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors