-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile.ubuntu
35 lines (30 loc) · 1.35 KB
/
Dockerfile.ubuntu
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
33
34
35
FROM ubuntu
ENV CALIBRE_URL=https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py \
BOOKSTACK_VER=v2.3 \
BOOKSTACK_PKG=BookStack.V2.3_Linux_amd64.zip
RUN apt-get update -qqy \
&& apt-get install -y ttf-wqy-zenhei fonts-wqy-microhei apt-utils\
&& apt-get install -y wget unzip git python xdg-utils xz-utils imagemagick \
###install calibre
&& wget -nv -O- ${CALIBRE_URL} | python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()";exit 0 \
&& rm -rf /tmp/calibre-installer-cache
###install google-chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
&& apt-get install -y google-chrome-stable \
&& rm -rf /etc/apt/sources.list.d/google-chrome.list
###install bookstack
RUN cd /opt/ \
&& wget https://github.com/TruthHun/BookStack/releases/download/${BOOKSTACK_VER}/${BOOKSTACK_PKG} \
&& unzip ${BOOKSTACK_PKG} \
&& mv linux bookstack \
&& cd bookstack \
&& chmod +x BookStack \
&& rm -rf /opt/${BOOKSTACK_PKG} \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
&& apt-get clean
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
WORKDIR /opt/bookstack/
EXPOSE 8181
ENTRYPOINT [ "/entrypoint.sh" ]