comic-dl/Dockerfile

21 lines
1013 B
Docker
Raw Normal View History

2018-06-10 22:03:08 +02:00
# this buld the base image to run comic_dl
FROM python:3.6.5-stretch AS base
2018-06-10 21:44:58 +02:00
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -yq upgrade
# update system & install basisc stuff
# and dependencies for phantomjs
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq \
build-essential chrpath libssl-dev libxft-dev \
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
wget
2018-06-10 21:44:58 +02:00
# install phantomjs and symlink to /usr/local/bin/
RUN wget -q https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/share/ && \
ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/
2018-06-10 22:03:08 +02:00
# This install comic-dl and symlink to comic_dl command
FROM base
COPY / /opt/comic-dl
RUN python -m pip install -r /opt/comic-dl/requirements.txt && \
2018-06-10 21:44:58 +02:00
chmod +x /opt/comic-dl/comic_dl/__main__.py && \
ln -s /opt/comic-dl/comic_dl/__main__.py /usr/local/bin/comic_dl