forked from lampnick/doctron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.runtime.alpine
35 lines (30 loc) · 1.26 KB
/
Dockerfile.runtime.alpine
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.12.0
MAINTAINER lampnick <[email protected]>
RUN echo "https://mirrors.aliyun.com/alpine/v3.12/main" > /etc/apk/repositories && \
echo "https://mirrors.aliyun.com/alpine/v3.12/community" >> /etc/apk/repositories && \
echo "https://mirrors.aliyun.com/alpine/v3.12/releases" >> /etc/apk/repositories && \
apk upgrade -U -a && \
apk add \
git \
curl \
wget \
chromium \
freetype \
harfbuzz \
libstdc++ \
nss \
ttf-freefont \
&& rm -fr /var/cache/* && \
mkdir /var/cache/apk
RUN cd /usr/share/fonts && \
git clone --progress --verbose https://github.com/lampnick/free-fonts.git && \
mv free-fonts/* ./ && \
mkfontscale && \
mkfontdir && \
fc-cache && \
fc-list :lang=zh
RUN chromium-browser --version
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64
RUN chmod +x /usr/local/bin/dumb-init
# auto run chrome headless
#ENTRYPOINT ["chromium-browser", "--headless", "--no-first-run", "---no-sandbox", "--disable-gpu", "--disable-dev-shm-usage", "--disable-setuid-sandbox", "--fast-start", "--single-process", "--disable-renderer-backgrounding", "--disable-sync", "--enable-automation", "--hide-scrollbars", "--mute-audio"]