-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·29 lines (22 loc) · 836 Bytes
/
Dockerfile
File metadata and controls
executable file
·29 lines (22 loc) · 836 Bytes
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
FROM debian:stretch
MAINTAINER Fabio J L Ferreira <fabiojaniolima@gmail.com>
# INstala o Calibre, Nodejs, gitbook e dependências
RUN apt-get update && \
apt-get install -y gnupg curl wget unzip calibre && \
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
apt-get install -y nodejs && \
npm install gitbook-cli -g && \
apt-get clean && \
rm -rf /var/cache/apt/* /var/lib/apt/lists/*
# Instala Arial fonts
RUN wget -P /tmp/raw_fonts https://github.com/billryan/algorithm-exercise/files/279471/arial.zip && \
cd /tmp/raw_fonts && \
unzip -o arial.zip && \
mv -t /usr/share/fonts/truetype Arial*ttf && \
rm arial.zip && \
fc-cache -f -v
# Instala a versão 3.2.3 do gitbook (opcionalmente: latest)
RUN gitbook fetch 3.2.3
WORKDIR /opt
EXPOSE 4000
CMD ["gitbook", "--help"]