2022-05-18 20:09:27 +02:00
|
|
|
FROM cr.44net.ch/baseimages/debian-s6:1.3.5
|
2021-12-24 16:30:50 +01:00
|
|
|
|
|
|
|
# set version label
|
2022-06-17 23:57:52 +02:00
|
|
|
ENV MDLP_VERSION=2.1.5
|
2021-12-24 16:30:50 +01:00
|
|
|
ARG BUILD_DATE
|
2022-06-17 23:57:52 +02:00
|
|
|
LABEL build_version="Version: ${MDLP_VERSION} - Build-date: ${BUILD_DATE}"
|
2021-12-24 16:30:50 +01:00
|
|
|
LABEL maintainer="Ivan Schaller"
|
|
|
|
|
|
|
|
|
|
|
|
# install packages
|
|
|
|
RUN \
|
|
|
|
echo "**** install base packages ****" && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2022-05-16 17:02:04 +02:00
|
|
|
python3 \
|
2021-12-24 16:30:50 +01:00
|
|
|
python3-pip \
|
|
|
|
&& \
|
|
|
|
echo "**** creating folders ****" && \
|
|
|
|
mkdir -p /app && \
|
|
|
|
echo "**** cleanup ****" && \
|
|
|
|
apt-get purge --auto-remove -y && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf \
|
|
|
|
/tmp/* \
|
|
|
|
/var/lib/apt/lists/* \
|
|
|
|
/var/tmp/*
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:26 +02:00
|
|
|
# copy files to container
|
|
|
|
COPY docker/rootfs /
|
|
|
|
COPY mangadlp/ /app/mangadlp/
|
|
|
|
COPY manga-dlp.py \
|
|
|
|
requirements.txt \
|
|
|
|
LICENSE \
|
|
|
|
/app/
|
2021-12-24 16:30:50 +01:00
|
|
|
|
|
|
|
|
2022-05-13 22:59:26 +02:00
|
|
|
# install requirements
|
|
|
|
RUN pip install -r /app/requirements.txt
|
2021-12-24 16:30:50 +01:00
|
|
|
|
2022-05-13 22:59:26 +02:00
|
|
|
WORKDIR /app
|