ocurrent-deployer icon indicating copy to clipboard operation
ocurrent-deployer copied to clipboard

Optimize Dockerfile

Open MisterDA opened this issue 2 years ago • 2 comments

  • Use BuildKit syntax to optimize copy from previous build step;
  • Remove apt cache at the same layer

MisterDA avatar Mar 03 '23 15:03 MisterDA

Can't manage to make the deployer use BuildKit on itself, I'm puzzled.

MisterDA avatar Mar 03 '23 17:03 MisterDA

Do you need some ENV variables set on the docker stack to enable BuildKit? ocaml-ci uses this https://github.com/ocurrent/ocaml-ci/blob/master/stack.yml#L75-L78

tmcgilchrist avatar Mar 27 '23 23:03 tmcgilchrist