muse-dl/Dockerfile

26 lines
787 B
Docker
Raw Normal View History

2020-04-02 12:16:45 +00:00
FROM ubuntu:19.04
2020-04-01 07:55:50 +00:00
WORKDIR /build
COPY . .
2020-04-02 12:16:45 +00:00
# Add the key for the crystal debian repo
ADD https://keybase.io/crystal/pgp_keys.asc /tmp/crystal.gpg
2020-04-01 07:55:50 +00:00
2020-04-02 12:16:45 +00:00
# Install gnupg for the apt-key operation and openssl for our TLS stuff
RUN apt-get update && \
apt-get install --yes --no-install-recommends gnupg=2.2.12-1ubuntu3 libssl-dev=1.1.1b-1ubuntu2.4 && \
# See https://crystal-lang.org/install/
apt-key add /tmp/crystal.gpg && \
echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list && \
apt-get update && \
apt-get install --no-install-recommends --yes crystal=0.33.0-1 pdftk=2.02-5 && \
# Cleanup
apt-get clean && \
rm -rf /var/lib/apt/lists/*
2020-04-01 07:55:50 +00:00
2020-04-02 12:16:45 +00:00
RUN shards install && shards build --release
2020-04-01 07:55:50 +00:00
2020-04-03 19:39:53 +00:00
VOLUME /output
2020-04-02 12:16:45 +00:00
ENTRYPOINT ["/build/bin/muse-dl"]