diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0c20ebb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.git +LICENSE +Dockerfile +spec/ +bin/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..626bc68 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM jrei/crystal-alpine as builder + +WORKDIR /build + +COPY . . + +RUN shards install && shards build --release --static + +FROM scratch + +COPY --from=builder /build/bin/muse-dl / + +ENTRYPOINT ["/muse-dl"] \ No newline at end of file