From 48fbef847d6dac3cff80d849f888027cd46b138b Mon Sep 17 00:00:00 2001 From: ChenXuzheng <1092889706@qq.com> Date: Sun, 8 May 2022 03:33:42 +0000 Subject: [PATCH] add dockerfile --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..06eb9ed --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file