-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
64 lines (58 loc) · 1.48 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM node:12.15.0-buster
WORKDIR /usr/src/app
RUN sed -i 's/deb http:\/\/deb.debian.org\/debian buster main/deb http:\/\/deb.debian.org\/debian buster main contrib non-free/g' /etc/apt/sources.list
RUN apt update
RUN apt upgrade -y
RUN apt install -y \
espeak \
mbrola-br* \
ffmpeg \
xfonts-75dpi \
xfonts-base \
ca-certificates \
fonts-liberation \
libappindicator3-1 \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgbm1 \
libgcc1 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxtst6 \
lsb-release \
wget \
xdg-utils
RUN export WKHTML_LATEST_VERSION=$(\
wget -O - "https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/releases/latest" | \
grep '"tag_name":' | \
sed -E 's/.*"([^"]+)".*/\1/') && \
wget "https://github.com/wkhtmltopdf/packaging/releases/download/${WKHTML_LATEST_VERSION}-1/wkhtmltox_${WKHTML_LATEST_VERSION}-1.buster_amd64.deb" \
&& dpkg -i wkhtmltox_${WKHTML_LATEST_VERSION}-1.buster_amd64.deb \
&& rm wkhtmltox_${WKHTML_LATEST_VERSION}-1.buster_amd64.deb
COPY . .
RUN npm install
ENTRYPOINT ["node", "main.js"]