Initial Dockerfile

This commit is contained in:
Nemo 2020-04-01 13:25:50 +05:30
parent 82ce97cbc8
commit ce0a901b47
2 changed files with 18 additions and 0 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.git
LICENSE
Dockerfile
spec/
bin/

13
Dockerfile Normal file
View File

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