FROM alpine:latest
RUN apk add gcc musl-dev ldc dub llvm-libunwind-static openssl-libs-static gzip upx"dflags": ["--nodefaultlib", "-static"],
"subConfigurations": {
"requests": "staticssl"
}dub --build=release # build as usual
strip -s your_exe # strip executable
gzexe your_exe # or upx -9 your_exe