docker examples: improve perf by using COPY --link (#52835)
### What? Uses `COPY --link` instructions in Docker examples. ### Why? This significantly [accelerates Docker builds and improves caching](https://www.howtogeek.com/devops/how-to-accelerate-docker-builds-and-optimize-caching-with-copy-link/). This instruction is supported for more than 1 year and is now supported by almost all modern Docker installations. We use it successfully for a while in [the API Platform distribution](https://github.com/api-platform/api-platform/blob/main/pwa/Dockerfile), which includes Next.js and is derived from these examples. ### How? By updating the existing examples.
Showing
Please
register
or
sign in
to comment