nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 307 forks source link

build: optimized Docker configuration #166

Closed mickael-palma-argus closed 4 years ago

mickael-palma-argus commented 4 years ago

Use multi-stage build. From 278MB to 99.2MB image size. Add docker-entrypoint script for dynamic setup. Add docker-compose file.

nicolasff commented 4 years ago

The new Alpine-based docker image also uses a multi-stage build, but brings the size down to 9.5 MB:

$ docker images
REPOSITORY                                 TAG                 IMAGE ID            CREATED             SIZE
webdis                                     latest              f384be97f47b        2 days ago          9.5MB