comic-dl/Dockerfile
Xonshiz 4045972c5d PRs Merged
Merged old PRs and Started workign on ac.qq.com
2019-04-10 21:06:21 +05:30

23 lines
1.1 KiB
Docker

# this buld the base image to run comic_dl
FROM python:3.6.5-stretch AS base
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 nodejs-legacy
# We're not using PhantomJS anymore. So, this step should be removed for now.
# 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/
# 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 && \
chmod +x /opt/comic-dl/comic_dl/__main__.py && \
ln -s /opt/comic-dl/comic_dl/__main__.py /usr/local/bin/comic_dl