|
FROM python:3.8.13
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
|
|
|
|
ENV PYHTONUNBUFFERED=1
|
|
RUN apt-get update \
|
|
&& apt-get -y install tesseract-ocr
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
CMD ["python", "app.py"]
|