# FROM python:3.10-slim # WORKDIR /app # # Install Chromium and ChromeDriver # RUN apt-get update && apt-get install -y \ # chromium \ # chromium-driver \ # build-essential \ # curl \ # git \ # && rm -rf /var/lib/apt/lists/* # # Copy requirements # COPY requirements.txt . # # Install Python packages # RUN pip install --no-cache-dir -r requirements.txt # # Copy project files # COPY . . # # Streamlit environment # ENV STREAMLIT_SERVER_PORT=8501 # ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 # EXPOSE 8501 # # Health check # HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1 # # Start app # ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] FROM python:3.10-slim WORKDIR /app RUN apt-get update && apt-get install -y \ chromium \ chromium-driver \ build-essential \ curl \ git \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . ENV STREAMLIT_SERVER_PORT=8501 ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 EXPOSE 8501 HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1 ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]