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
RUN mkdir pics libs ppt
COPY requirements.txt config.ini main.py /source_code
COPY ./libs /source_code/libs/
RUN pip install -r requirements.txt
CMD ["python", "main.py"]
docker run -it --rm -e ASANA_TOKEN="xxxxxxx" -e MAIL_SERVER="ex.xxxxx.com" -e MAIL_SENDER="xxx@xxxxx.com" -e MAIL_SENDER_SECRET="xxxxx" -e MAIL_RECEIVER="xxx@gmail.com" pptboss
投影片樣板
和 一張甘特圖
docker run -it --rm -e ASANA_TOKEN="xxxxxxx" -e MAIL_SERVER="ex.xxxxx.com" -e MAIL_SENDER="xxx@xxxxx.com" -e MAIL_SENDER_SECRET="xxxxx" -e MAIL_RECEIVER="xxx@gmail.com" -v $(pwd)/ppt:/source_code/ppt -v $(pwd)/pics:/source_code/pics pptboss