optimize dockerfile

3 jobs for master in 4 minutes and 40 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #11170
build

00:04:24

 
  Deploy
passed #11171
deploy

00:00:16

manual #11172
allowed to fail manual
stop_deploy