FROM amancevice/pandas
ENV TZ=Asia/Taipei
RUN apt-get update -y
RUN apt-get install xfonts-utils -y
RUN wget https://www.twfont.com/chinese/font/TaipeiSans.ttf
RUN cp *.ttf /usr/share/fonts/truetype && cd /usr/share/fonts/truetype
RUN mkfontscale && mkfontdir && fc-cache
WORKDIR /source_code
ADD . /source_code/
RUN pip install -r requirements.txt
CMD ["python", "main.py"]
docker build -t pptboss . --no-cache
ppt
掛進容器的對應目錄,其他不做修改ppt
下看到今天日期的投影片docker run -it --rm -v $(pwd)/ppt:/source_code/ppt pptboss
-it
這個參數