https://github.com/0xdevalias/docker-upx
A simple little Docker container to build UPX and self-minify the binary.
https://github.com/0xdevalias/docker-upx
Last synced: 8 months ago
JSON representation
A simple little Docker container to build UPX and self-minify the binary.
- Host: GitHub
- URL: https://github.com/0xdevalias/docker-upx
- Owner: 0xdevalias
- License: mit
- Created: 2017-11-28T20:32:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T20:58:22.000Z (about 8 years ago)
- Last Synced: 2025-06-26T10:21:28.093Z (8 months ago)
- Language: Shell
- Homepage: https://hub.docker.com/r/devalias/upx/
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-upx
A simple little Docker container to build [UPX](https://github.com/upx/upx) and self-minify the binary.
This makes use of [Docker's multi-stage builds](https://docs.docker.com/engine/userguide/eng-image/multistage-build/) (available since `v17.05`).
## Usage
You could run it directly on some mapped volume:
```
docker run --rm -v "$PWD/foo:/foo" devalias/upx:devel --brute -o /foo/bar.upx /foo/bar
```
Or you could copy it into another Dockerfile:
```
FROM devalias/upx:devel AS upx
FROM your/baseimage
COPY --from=upx /usr/bin/upx /usr/bin/upx
```
## GitHub
* https://github.com/0xdevalias/docker-upx
## DockerHub
* https://hub.docker.com/r/devalias/upx/
## Improvements
* ...
## Author
[Glenn 'devalias' Grant](http://devalias.net/) ([@_devalias](https://twitter.com/_devalias))