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

Merge aplicado
dfeyer mesclou 3 commits de task-better-dockerfile em master 2019-01-09 16:48:20 +00:00
dfeyer comentou 2019-01-08 16:23:53 +00:00 (Migrado de 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 (Migrado de github.com) aprovou estas alterações 2019-01-09 16:48:05 +00:00
elegaanz (Migrado de github.com) deixou um comentário

Seems to work as expected, thank you!

Seems to work as expected, thank you!
Inicie a sessão para participar desta conversa.
Sem revisor
Sem marco
Sem projeto
Sem responsáveis
1 participante
Notificações
Data limite
A data limite é inválida ou está fora do intervalo permitido. Por favor, use o formato "yyyy-mm-dd".

Não há data limite definida.

Dependências

Não há dependências definidas.

Referência: Plume/Plume#416
Nenhuma descrição fornecida.