Newer
Older
# +--------------------------------------+
# | You need to get calibre-web first! |
# | Just do a 'git clone ...' and put |
# | Calibre-Web into './calibre-web', so |
# | the build-command can copy it into |
# | the Docker-image. |
# +--------------------------------------+
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y python python-pip python-virtualenv
RUN apt-get install -y imagemagick libmagickwand-dev
# create a non-root user
RUN groupadd -g 999 appuser && \
useradd -r -u 999 -g appuser appuser
RUN mkdir -p /app /ebooks
WORKDIR /app
# copy calibre-web to /app
COPY calibre-web/ /app/
# install the requirements
RUN pip install -r requirements.txt
# install the optional stuff
RUN pip install -r optional-requirements.txt
# install lxml