1 Star 0 Fork 2

王立松/doctron

forked from 橙子/doctron 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.runtime.alpine 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
Nick 提交于 2020-10-23 13:12 . mv dumb-init to base image
FROM alpine:3.12.0
MAINTAINER lampnick <nick@lampnick.com>
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"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wls/doctron.git
git@gitee.com:wls/doctron.git
wls
doctron
doctron
master

搜索帮助