Use multi step build to limit the docker image size #416

Merged
dfeyer merged 3 commits from task-better-dockerfile into master 6 years ago

3 Commits (main)

Author SHA1 Message Date
Dominique Feyer 0e51e60aaa Use sleep between chmod and execution 6 years ago
Dominique Feyer 7cfa5007c4 Use correct path for local repository 6 years ago
Dominique Feyer 1df003237f Use multi step build to limit the image size
This change replace the Dockerfile with a multi step build to avoid huge image
size (the new image should be around 130Mo including all layers), compared to
more that 1Go with the full build chain. It's also more safe. This image does
not include cargo (not needed in production), so the old Dockerfile is available
and renamed Dockerfile.slim for those who use Docker for development setup.
6 years ago