我正在尝试在 Google App Engine 上部署使用 Streamlit 开发的网络应用程序。当部署过程接近完成时。我收到以下错误:
ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error! Code: APP_CONTAINER_CRASHED
You can now view your Streamlit app in your browser.
Network URL: http://172.17.0.6:8080
External URL: http://34.67.15.189:8080
Killed
我无法理解此错误的根本原因。任何建议和/或帮助将不胜感激。
编辑:
我正在使用灵活的环境。app.yaml 如下:
runtime: custom
env: flex
runtime_config:
python_version: 3
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 5
disk_size_gb: 25
Dockerfile如下:
FROM python:3.7
# Copy local code to the container image.
WORKDIR /app
COPY requirements.txt ./requirements.txt
# Install dependencies.
RUN pip3 install -r requirements.txt
EXPOSE 8080
COPY . /app
# Run the web service on container startup.
CMD streamlit run --server.port 8080 --server.enableCORS false app.py
而且,要求是:
pandas==0.24.2
scikit_learn==0.23.1
streamlit==0.62.1