Streamlit App Deployment on AWS App Runner

Замовник: AI | Опубліковано: 23.10.2025

Description: I have a Streamlit app packaged in a Docker container (Python 3.11) that runs perfectly locally and on Docker, but fails to render correctly when deployed via AWS App Runner. The container deploys successfully and passes health checks, but the web page appears blank in the browser and the Chrome console shows WebSocket connection errors. I need an experienced DevOps or Python engineer familiar with Streamlit + AWS App Runner (or ECS/Fargate) who can diagnose and fix this issue. Current setup: AWS App Runner deployment from ECR Dockerfile (simplified): FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install -r requirements.txt COPY . . EXPOSE 8080 CMD sh -lc 'python -m streamlit run streamlit_ui.py \ --server.address 0.0.0.0 \ --server.port=${PORT:-8080} \ --server.headless=true \ --server.enableCORS=false \ --server.enableXsrfProtection=false \ --server.enableWebsocketCompression=false \ --server.websocketPingInterval=30 \ --server.websocketPingTimeout=120 \ --logger.level=debug' App logs show normal startup (no errors) Browser shows blank page + WebSocket handshake failures Deliverables: Identify and fix the configuration causing the blank screen / failed WebSocket connections. Provide a working deployment of the Streamlit app on AWS App Runner. Explain what was wrong and document any required Dockerfile or App Runner configuration changes.