如何在docker中为python设置selenium?

如何在docker中为python设置selenium?,python,docker,selenium,python-tesseract,Python,Docker,Selenium,Python Tesseract,如何在ubuntu环境中的docker中设置selenium,因为我还将tesseract用于OCR和flask 我应该如何制作我的dockerfile 这是我的文件 FROM ubuntu:18.04 RUN apt-get update \ && apt-get install tesseract-ocr -y \ python3 \ #python-setuptools \ python3-pip \ && apt-g

如何在ubuntu环境中的docker中设置selenium,因为我还将tesseract用于OCR和flask

我应该如何制作我的dockerfile

这是我的文件

FROM ubuntu:18.04
RUN apt-get update \
    && apt-get install tesseract-ocr -y \
    python3 \
    #python-setuptools \
    python3-pip \
    && apt-get clean \
    && apt-get autoremove

ADD . /home/App
WORKDIR /home/App
COPY requirements.txt ./
COPY . .

RUN pip3 install -r requirements.txt

VOLUME ["/data"]
EXPOSE 5001
ENTRYPOINT [ "python3" ]
CMD [ "app.py" ]
非常感谢您的帮助

你调查过这件事吗?你调查过这件事吗?