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
dfeyer commented 2019-01-08 16:23:53 +00:00 (Migrated from github.com)

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.dev for those who use Docker for development setup.

Closes: #411

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.dev for those who use Docker for development setup. Closes: #411
elegaanz (Migrated from github.com) approved these changes 2019-01-09 16:48:05 +00:00
elegaanz (Migrated from github.com) left a comment

Seems to work as expected, thank you!

Seems to work as expected, thank you!
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#416
No description provided.