6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-22 21:28:24 +00:00
Régis Behmo 7972a75915 feat: leverage RUN --mount for faster image building
We make use of the Docker build cache to install python and nodejs
requirements faster in the case of repeated builds.

This feature is only possible for users of BuildKit, so we detect
whether `docker buildx` is available at runtime.

We do not make use of `COPY --link` because the `--link` option is
incompatible with `--chown=app:app`:
https://github.com/docker/buildx/issues/1408

For reference, see:

https://www.docker.com/blog/dockerfiles-now-support-multiple-build-contexts/
https://docs.docker.com/engine/reference/commandline/buildx_build/#build-context
2023-06-14 21:08:49 +02:00
..
2019-03-23 16:16:44 -07:00
2022-11-15 14:58:36 +01:00
2023-06-14 19:40:58 +02:00
2023-02-10 10:06:38 +01:00