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

Merged
dfeyer merged 3 commits from task-better-dockerfile into master 2019-01-09 16:48:20 +00:00

3 commits

Author SHA1 Message Date
Dominique Feyer
0e51e60aaa Use sleep between chmod and execution 2019-01-08 17:27:22 +01:00
Dominique Feyer
7cfa5007c4 Use correct path for local repository 2019-01-08 17:24:45 +01:00
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.
2019-01-08 17:20:43 +01:00