add dockerfile
parent
21cf3420ed
commit
48fbef847d
|
|
@ -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" ]
|
||||||
Loading…
Reference in New Issue