├── Dockerfile └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:17.10 2 | MAINTAINER santi@regueiro.es 3 | 4 | RUN apt-get update -y \ 5 | && apt-get install -y calibre \ 6 | && apt-get clean \ 7 | && rm -rf /var/cache/apt/* /var/lib/apt/lists/* 8 | 9 | EXPOSE 8080 10 | 11 | RUN mkdir /opt/calibre && mkdir /opt/calibre/library 12 | 13 | VOLUME ["/opt/calibre/library"] 14 | ENTRYPOINT ["/usr/bin/calibre-server", "/opt/calibre/library"] 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | calibre-server-docker 2 | ===================== 3 | 4 | Docker container with calibre preinstalled 5 | 6 | Getting the image 7 | ----------------- 8 | You can pull it from ``https://index.docker.io/u/regueiro/calibre-server/`` or clone this repo and build it. 9 | 10 | All you need is the Dockerfile. 11 | 12 | 13 | Using your library 14 | ------------------ 15 | 16 | This container exposes the volume **/opt/calibre/server** and the port **8080** 17 | 18 | 19 | To allow calibre to run **your library** you have to **mount it as a volume** with ``-v /your/library/location:/opt/calibre/library`` 20 | 21 | 22 | Running the container 23 | ------------------------ 24 | 25 | docker run -p 80:8080 -v /media/calibre/books:/opt/calibre/library -name calibre regueiro/calibre-server 26 | 27 | From now on: 28 | 29 | docker start calibre 30 | 31 | 32 | You can pass arguments to calibre-server: 33 | 34 | docker run -p 80:8080 -v /media/calibre/books:/opt/calibre/library -name calibre regueiro/calibre-server --username user --password pass 35 | --------------------------------------------------------------------------------