mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2024-12-22 06:18:01 +00:00
Add upx compression to Dockerfile
This commit is contained in:
parent
7dfa0a2e6d
commit
c54cf5a456
@ -7,7 +7,8 @@ WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN apk add make git && make build VERSION=$VERSION
|
||||
RUN apk add make git upx && make build VERSION=$VERSION \
|
||||
&& upx --best --lzma whatismyip
|
||||
|
||||
# Build final image
|
||||
FROM scratch
|
||||
|
@ -138,7 +138,7 @@ Download the latest version from https://github.com/dcarrillo/whatismyip/release
|
||||
|
||||
## Docker
|
||||
|
||||
An ultra-light (~12MB) image is available at [docker hub](https://hub.docker.com/r/dcarrillo/whatismyip).
|
||||
An ultra-light (~4MB) image is available on [docker hub](https://hub.docker.com/r/dcarrillo/whatismyip). Since version `2.1.2`, the binary is compressed using [upx](https://github.com/upx/upx).
|
||||
|
||||
### Run a container locally using test databases
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user