-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (21 loc) · 1003 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM linuxserver/calibre-web:arm64v8-latest
#FROM linuxserver/calibre-web:arm32v7-latest
LABEL maintainer="Ridgarou <ridgarou@gmail.com>" description="Calibre-Server with Calibre Web based on MephistoXoL (https://github.com/MephistoXoL/Docker-CalibreSrv-Web) image" version="multi.arch"
EXPOSE 8083
## INSTALL CALIBRE PACKAGES
RUN apt-get update && \
apt-get install --no-install-recommends -y calibre cron
## CLEAN PACKAGES
RUN apt-get -y autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
## COPY SCRIPTS
COPY entrypoint.sh /usr/bin/entrypoint.sh
RUN chmod +x /usr/bin/entrypoint.sh
COPY Auto_Books_Calibre.sh /app/Auto_Books_Calibre.sh
RUN chmod +x /app/Auto_Books_Calibre.sh
## CREATING STRUCTURE
RUN mkdir /Books_Calibre /Books_Calibre_Backup /Backup_Library && \
chmod 777 /Books_Calibre /Books_Calibre_Backup /Backup_Library
VOLUME /config /books /Books_Calibre /Books_Calibre_Backup /Backup_Library
ENTRYPOINT /usr/bin/entrypoint.sh