add dockerfile

master
ChenXuzheng 2022-05-08 03:33:42 +00:00
parent 21cf3420ed
commit 48fbef847d
1 changed files with 14 additions and 0 deletions

14
Dockerfile 100644
View File

@ -0,0 +1,14 @@
FROM python:3.8
WORKDIR /app
RUN apt-get update && apt-get install libgl1 -y
RUN pip install --no-cache-dir requests datetime schedule ddddocr
COPY . .
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' > /etc/timezone
CMD [ "python", "./main.py" ]