docker / getting-started

Getting started with Docker
Apache License 2.0
2.91k stars 6.4k forks source link

Add platform flags to Dockerfile to speed up builds #341

Closed mikesir87 closed 1 year ago

mikesir87 commented 1 year ago

Since the initial mkdocs build and app ZIP creation is platform-independent, I added the --platform=$BUILDPLATFORM to reuse the outputs from those stages. Only the final nginx stage uses the --platform=$TARGETPLATFORM.

mikesir87 commented 1 year ago

Ping @StefanScherer (I think i submitted this while you were out for the holidays)