On Sunday, 23 August 2020 at 09:56:25 UTC, Andre Pany wrote:
Please have a look at the end of this site:
https://d-land.sepany.de/tutorials/cloud/sichere-docker-images-fuer-cloud-anwendungen-erstellen/
It describes how to build really small vibed applications on
Alpine by using docker scratch image.
Also it is possible to cache the dub package builds, but i am
writing from my mobile and have currently no example: you copy
dub.json / dub.selections.json first into your docker image.
Dub.json contains a configuration with name e.g. "prebuild" and
as far as I remember targetType "None". You execute dub build
with this configuration and after that you copy all source code
files into your docker image and build the complete application.
This will give you a lot faster docker builds.
Thank you, Andre. I'll try these.