1
0
html2pic/Dockerfile

20 lines
342 B
Docker

FROM centos
LABEL maintainer="MiaoWoo<admin@yumc.pw>"
ENV LANG en_US.UTF-8
RUN yum install -y fontconfig git nano
RUN git clone https://github.com/powerline/fonts.git --depth=1 && \
cd fonts && \
./install.sh && \
fc-cache
WORKDIR /root
ADD main main
ADD lib lib
ENV LIB_DIR=/root/lib
CMD ./main -lib ${LIB_DIR}