DMD docker image

Jan Hönig hrominium at gmail.com
Fri Jan 17 16:43:17 UTC 2020


I have created a docker image.
However the image size is not small (~500MB).
I wonder if others have a suitable dockerfile.
All i want is to install the current dmd release.

Does somebody have something similar?
Does somebody need something similar?

My dockerfile:

```
FROM ubuntu:latest
MAINTAINER Jan Hönig <jan.hoenig at fau.de>

RUN apt-get update &&  apt-get install curl build-essential -y \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*

RUN latest=$(curl -sS http://downloads.dlang.org/releases/LATEST) 
\
   && echo "DMD Release: $latest" \\
   && curl 
"http://downloads.dlang.org/releases/2020/dmd_${latest}-0_amd64.deb" -o dmd.deb \
   && dpkg -i "dmd.deb" \
   && rm "dmd.deb"
```


More information about the Digitalmars-d-learn mailing list