Alpine support for D

Andre Pany andre at s-e-a-p.de
Wed Jun 10 14:42:17 UTC 2020


On Wednesday, 10 June 2020 at 12:59:33 UTC, Jesse Phillips wrote:
> On Wednesday, 10 June 2020 at 01:06:30 UTC, aberba wrote:
>> On Tuesday, 9 June 2020 at 14:23:34 UTC, Jesse Phillips wrote:
>>> I notice that in the new release for Alpine Linux it mentions 
>>> support for D.
>>>
>>> I was curious what was meant by this and thought someone here 
>>> would know. Just high level, like druntime was ported or 
>>> packages added to the repo?
>>
>> Tradionally you'd run D on something like Ubuntu, etc but 
>> Alpine is lightweight which is a good thing when building 
>> docker containers. Alpine uses a different C runtime musl?? 
>> among other things whilst D uses use libc. So I believe we now 
>> have bindings musl too to get D to work on Alpine.
>
> Thank you. So it sounds like there are D compiler packages, and 
> you can use alpine to execute programs written in D.

Yes, here a Dockerfile example, which installs ldc and dub.

```
FROM alpine:3.12 as base

RUN apk add --update alpine-sdk ldc dub openssl-dev zlib-dev
```

Kind regards
Andre




More information about the Digitalmars-d-learn mailing list