From 252e89678580d6100d02f1a39c873b1f1231a8d0 Mon Sep 17 00:00:00 2001 From: Nemo Date: Thu, 2 Apr 2020 17:49:23 +0530 Subject: [PATCH] Adds a static builder --- static.Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 static.Dockerfile diff --git a/static.Dockerfile b/static.Dockerfile new file mode 100644 index 0000000..5201417 --- /dev/null +++ b/static.Dockerfile @@ -0,0 +1,12 @@ +FROM jrei/crystal-alpine:edge as builder + +WORKDIR /build + +COPY . . + +RUN shards install && \ + shards build --release --static + +FROM scratch + +COPY --from=builder /build/bin/muse-dl /muse-dl \ No newline at end of file