2017-06-06 23:33:43 -07:00
|
|
|
|
FROM lsiobase/alpine.python:3.6
|
|
|
|
|
MAINTAINER sparklyballs/chbmb
|
2017-03-20 18:34:52 -07:00
|
|
|
|
|
|
|
|
|
# set version label
|
|
|
|
|
ARG BUILD_DATE
|
|
|
|
|
ARG VERSION
|
|
|
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
|
|
|
|
|
|
|
|
# install build packages
|
|
|
|
|
RUN \
|
|
|
|
|
apk add --no-cache --virtual=build-dependencies \
|
|
|
|
|
curl \
|
|
|
|
|
g++ \
|
|
|
|
|
gcc \
|
|
|
|
|
git \
|
|
|
|
|
make \
|
|
|
|
|
python2-dev \
|
|
|
|
|
tar && \
|
|
|
|
|
|
|
|
|
|
# install runtime packages
|
|
|
|
|
apk add --no-cache \
|
2017-06-09 13:06:13 -07:00
|
|
|
|
imagemagick && \
|
2017-03-20 18:34:52 -07:00
|
|
|
|
|
|
|
|
|
# install calibre-web
|
|
|
|
|
mkdir -p \
|
|
|
|
|
/app/calibre-web && \
|
|
|
|
|
curl -o \
|
|
|
|
|
/tmp/calibre-web.tar.gz -L \
|
|
|
|
|
https://github.com/janeczku/calibre-web/archive/master.tar.gz && \
|
|
|
|
|
tar xf \
|
|
|
|
|
/tmp/calibre-web.tar.gz -C \
|
|
|
|
|
/app/calibre-web --strip-components=1 && \
|
|
|
|
|
cd /app/calibre-web && \
|
|
|
|
|
pip install --no-cache-dir -U -r \
|
|
|
|
|
requirements.txt && \
|
2017-06-06 23:33:43 -07:00
|
|
|
|
pip install --no-cache-dir -U -r \
|
|
|
|
|
optional-requirements.txt && \
|
2017-03-20 18:34:52 -07:00
|
|
|
|
|
|
|
|
|
# cleanup
|
|
|
|
|
apk del --purge \
|
|
|
|
|
build-dependencies && \
|
|
|
|
|
rm -rf \
|
|
|
|
|
/tmp/*
|
|
|
|
|
|
|
|
|
|
# add local files
|
|
|
|
|
COPY root/ /
|
|
|
|
|
|
|
|
|
|
# ports and volumes
|
2017-06-06 23:33:43 -07:00
|
|
|
|
EXPOSE 8083
|
2017-03-20 18:34:52 -07:00
|
|
|
|
VOLUME /books /config
|