manga-dlp/docker/Dockerfile.arm64

53 lines
1.1 KiB
Docker
Raw Normal View History

FROM cr.44net.ch/baseimages/debian-s6:11.5.5-linux-arm64
2021-12-24 16:30:50 +01:00
# set version label
2022-06-18 14:58:44 +02:00
ARG BUILD_VERSION
ENV MDLP_VERSION=${BUILD_VERSION}
LABEL version="${BUILD_VERSION}"
2021-12-24 16:30:50 +01:00
LABEL maintainer="Ivan Schaller"
2022-06-18 14:58:44 +02:00
LABEL description="A CLI manga downloader"
2021-12-24 16:30:50 +01:00
# install packages
RUN \
2022-07-08 12:15:35 +02:00
echo "**** install base packages ****" \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
python3 \
python3-pip
# prepare app
RUN \
echo "**** creating folders ****" \
2022-07-18 21:03:42 +02:00
&& mkdir -p /app \
&& echo "**** updating pip ****" \
&& python3 -m pip install --upgrade pip
2022-07-08 12:15:35 +02:00
# cleanup installation
RUN \
echo "**** cleanup ****" \
&& apt-get purge --auto-remove -y \
&& apt-get clean \
&& rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
2021-12-24 16:30:50 +01:00
2022-05-13 22:59:26 +02:00
# copy files to container
COPY docker/rootfs /
COPY mangadlp/ /app/mangadlp/
2022-07-08 12:15:35 +02:00
COPY \
manga-dlp.py \
requirements.txt \
LICENSE \
2022-05-13 22:59:26 +02:00
/app/
2021-12-24 16:30:50 +01:00
2022-05-16 17:07:34 +02:00
# install requirements (without img2pdf)
RUN grep -v img2pdf /app/requirements.txt > /app/requirements-arm64.txt
RUN pip install -r /app/requirements-arm64.txt
2021-12-24 16:30:50 +01:00
2022-05-13 22:59:26 +02:00
WORKDIR /app