diff --git a/languages/d/Dockerfile b/languages/d/Dockerfile new file mode 100644 index 0000000..4bb50e1 --- /dev/null +++ b/languages/d/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine +LABEL author="SunRed" + +RUN apk add --no-cache musl-dev gcc ldc + +COPY run.sh /var/run/ diff --git a/languages/d/run.sh b/languages/d/run.sh new file mode 100644 index 0000000..ae18bab --- /dev/null +++ b/languages/d/run.sh @@ -0,0 +1,2 @@ +cat > program.d +ldc2 program.d -of program && ./program