refactor: 基础景象

This commit is contained in:
fit2cloud-chenyw 2022-02-15 14:19:02 +08:00
parent d7519a9328
commit 05ac9999c5

View File

@ -2,18 +2,18 @@ FROM registry.cn-qingdao.aliyuncs.com/dataease/fabric8-java-alpine-openjdk8-jre:
RUN echo -e 'http://mirrors.aliyun.com/alpine/edge/main/\nhttp://mirrors.aliyun.com/alpine/edge/community/' > /etc/apk/repositories RUN echo -e 'http://mirrors.aliyun.com/alpine/edge/main/\nhttp://mirrors.aliyun.com/alpine/edge/community/' > /etc/apk/repositories
RUN apk add chromium chromium-chromedriver fontconfig --no-cache --allow-untrusted #RUN apk add chromium chromium-chromedriver fontconfig --no-cache --allow-untrusted
RUN mkdir -p /usr/local/sbin/ \ #RUN mkdir -p /usr/local/sbin/ \
&& cp /usr/bin/chromedriver /usr/local/sbin/ \ # && cp /usr/bin/chromedriver /usr/local/sbin/ \
&& chmod a+x /usr/local/sbin/chromedriver # && chmod a+x /usr/local/sbin/chromedriver
ADD simsun.ttc /usr/share/fonts/ ADD simsun.ttc /usr/share/fonts/
RUN cd /usr/share/fonts/ \ #RUN cd /usr/share/fonts/ \
&& mkfontscale \ # && mkfontscale \
&& mkfontdir \ # && mkfontdir \
&& fc-cache -fv # && fc-cache -fv
ARG IMAGE_TAG ARG IMAGE_TAG