You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
muse-dl/Dockerfile

45 lines
1.2 KiB

FROM debian:10-slim
WORKDIR /build
COPY . .
# Add the key for the crystal debian repo
ADD https://keybase.io/crystal/pgp_keys.asc /tmp/crystal.gpg
# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199 for why mkdir is needed
RUN mkdir -p /usr/share/man/man1 && \
apt-get update && \
apt-get install --yes --no-install-recommends \
# Install gnupg for the apt-key operation
gnupg \
# libssl for faster TLS in Crystal
libssl-dev \
# pdftk as a dependency for muse-dl
pdftk=2.02-5 \
# ca-certificates for talking to crystal-lang.org
ca-certificates \
# git to let shards install happen
git \
# needed by myhtml crystal shard
make \
# build --release
zlib1g-dev && \
# 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.34.0-1 && \
# Cleanup
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN shards install && shards build --release && \
ln /build/bin/muse-dl /usr/bin/muse-dl
RUN apt-get --yes remove git gnupg
WORKDIR /data
VOLUME /data
ENTRYPOINT ["/usr/bin/muse-dl"]