How to pre build vibe-d dub package

Andre Pany andre at s-e-a-p.de
Sat May 30 07:41:34 UTC 2020


On Saturday, 30 May 2020 at 00:12:20 UTC, kookman wrote:
> On Friday, 29 May 2020 at 11:45:24 UTC, Andre Pany wrote:
>> André
>
> I do it by defining a configuration “build-deps” in my dub.sdl 
> with target type “none” and then doing the build as two steps 
> in the dockerfile:
>
> ``` dockerfile
> ...
> WORKDIR /build
> COPY dub.s* ./
> RUN dub build -v —config=build-deps
> COPY src ./src
> RUN dub build -v —config=executable
> ...

Fantastic, thanks a lot.

Kind regards
Andre


More information about the Digitalmars-d-learn mailing list