Adds a static builder

This commit is contained in:
Nemo 2020-04-02 17:49:23 +05:30
parent b354440d60
commit 252e896785
1 changed files with 12 additions and 0 deletions

12
static.Dockerfile Normal file
View File

@ -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