Skip to content

Dockerfile: utilize cache layers for faster rebuilds

NOTE: the "--chown" COPY argument requires Docker 17.09 and up: https://github.com/moby/moby/pull/27303#issuecomment-338921602

  • ENV DEBIAN_FRONTEND noninteractive is dropped as it is not required anymore and injecting DEBIAN_FRONTEND to final image is not recommended practice.
  • nodejs/yarn are copied from node docker image

the resulting image appears to be even smaller now:

image

Edited by Elan Ruusamäe

Merge request reports