【发布时间】:2022-06-21 15:19:49
【问题描述】:
我正在尝试运行从这个 Dockerfile 创建的 Docker 容器
FROM selenium/standalone-chrome
WORKDIR /app
# Install dependencies
USER root
RUN apt-get update && apt-get install python3-distutils -y
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python3 get-pip.py
COPY requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
RUN pip install selenium==4.1
# Copy src contents
COPY /src /app/
# Expose the port
EXPOSE 8501
# Execution
ENTRYPOINT [ "streamlit", "run" ]
CMD ["app.py"]
构建这个容器是可能的,但是当我执行镜像时,我得到以下消息:
???? Welcome to Streamlit!
If you're one of our development partners or you're interested in getting
personal technical support or Streamlit updates, please enter your email
address below. Otherwise, you may leave the field blank.
Email: 2022-06-06 09:20:27.690
因此,当执行停止时,我无法按 Enter 键并继续执行。你们知道我应该如何让我的 Dockerfile 直接执行streamlit run 命令并超越这个问题吗?
【问题讨论】: