51 lines
985 B
Docker
51 lines
985 B
Docker
FROM lsiobase/alpine.python:3.6
|
||
MAINTAINER sparklyballs,chbmb
|
||
|
||
# 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 \
|
||
imagemagick && \
|
||
|
||
# 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 && \
|
||
pip install --no-cache-dir -U -r \
|
||
optional-requirements.txt && \
|
||
|
||
# cleanup
|
||
apk del --purge \
|
||
build-dependencies && \
|
||
rm -rf \
|
||
/tmp/*
|
||
|
||
# add local files
|
||
COPY root/ /
|
||
|
||
# ports and volumes
|
||
EXPOSE 8083
|
||
VOLUME /books /config
|