renovate-bot
7181ab4b33
Some checks failed
ci/woodpecker/push/tests Pipeline was successful
ci/woodpecker/pr/tests Pipeline was successful
ci/woodpecker/pr/test_tox_arm64 Pipeline failed
ci/woodpecker/pr/test_docker_arm64 Pipeline failed
ci/woodpecker/pr/test_docker_amd64 Pipeline was successful
ci/woodpecker/pr/test_release Pipeline was successful
ci/woodpecker/pr/test_tox_amd64 Pipeline was successful
50 lines
1 KiB
Docker
50 lines
1 KiB
Docker
FROM cr.44net.ch/baseimages/debian-s6:11.5.5-linux-amd64
|
|
|
|
# set version label
|
|
ARG BUILD_VERSION
|
|
ENV MDLP_VERSION=${BUILD_VERSION}
|
|
LABEL version="${BUILD_VERSION}"
|
|
LABEL maintainer="Ivan Schaller"
|
|
LABEL description="A CLI manga downloader"
|
|
|
|
|
|
# install packages
|
|
RUN \
|
|
echo "**** install base packages ****" \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
python3 \
|
|
python3-pip
|
|
|
|
# prepare app
|
|
RUN \
|
|
echo "**** creating folders ****" \
|
|
&& mkdir -p /app \
|
|
&& echo "**** updating pip ****" \
|
|
&& python3 -m pip install --upgrade pip
|
|
|
|
# cleanup installation
|
|
RUN \
|
|
echo "**** cleanup ****" \
|
|
&& apt-get purge --auto-remove -y \
|
|
&& apt-get clean \
|
|
&& rm -rf \
|
|
/tmp/* \
|
|
/var/lib/apt/lists/* \
|
|
/var/tmp/*
|
|
|
|
|
|
# copy files to container
|
|
COPY docker/rootfs /
|
|
COPY mangadlp/ /app/mangadlp/
|
|
COPY \
|
|
manga-dlp.py \
|
|
requirements.txt \
|
|
LICENSE \
|
|
/app/
|
|
|
|
|
|
# install requirements
|
|
RUN pip install -r /app/requirements.txt
|
|
|
|
WORKDIR /app
|