add dockerfile

This commit is contained in:
2022-05-08 03:33:42 +00:00
parent 21cf3420ed
commit 48fbef847d
+14
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" ]