wkhtmltox 镜像构建,支持x86 && arm64

224 阅读1分钟

需要构建x86镜像,需要替换ARCH==amd64,arm64替换{ARCH} == 'amd64', arm64替换{ARCH} == 'arm64' FROM debian:buster

RUN apt-get update
&& apt-get install -y
wget
fontconfig
fontconfig-config
fonts-dejavu-core
libbsd0
libexpat1
libfontconfig1
libfontenc1
libfreetype6
libjpeg62-turbo
libpng16-16
libx11-6
libx11-data
libxau6
libxcb1
libxdmcp6
libxext6
libxrender1
lsb-base
sensible-utils
ucf
x11-common
xfonts-75dpi
xfonts-base
xfonts-encodings
xfonts-utils

RUN wget "github.91chi.fun//https://gi…"

RUN dpkg -i wkhtmltox_0.12.6-1.buster_${ARCH}.deb

RUN rm -f wkhtmltox_0.12.6-1.buster_${ARCH}.deb