-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (28 loc) · 981 Bytes
/
Dockerfile
File metadata and controls
34 lines (28 loc) · 981 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
30
31
32
33
34
FROM alpine:3.8
# set environment variables
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV CHROME_BIN=/usr/bin/chromium-browser
ENV CHROME_PATH=/usr/lib/chromium/
# install chromium and its dependencies
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories \
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& echo "http://dl-cdn.alpinelinux.org/alpine/v3.11/main" >> /etc/apk/repositories \
&& apk upgrade -U -a \
&& apk add --no-cache \
libstdc++ \
npm \
chromium \
harfbuzz \
nss \
freetype \
ttf-freefont \
wqy-zenhei \
&& rm -rf /var/cache/* \
&& mkdir /var/cache/apk
# set config volume
VOLUME /config
# install haxroomie-cli
RUN npm install haxroomie-cli -g
# start haxroomie-cli
ENTRYPOINT haxroomie-cli -e $CHROME_BIN --no-sandbox -c /config/config.js