New / Dockerfile
jayanth-2005's picture
Update Dockerfile
295b34d verified
Raw History Blame Contribute Delete
569 Bytes
FROM python:3.10-slim
# Install system dependencies + Chromium
RUN apt-get update && apt-get install -y \
wget \
curl \
unzip \
gnupg \
chromium \
chromium-driver \
&& rm -rf /var/lib/apt/lists/*
# Environment variables
ENV CHROME_BIN=/usr/bin/chromium
ENV CHROMEDRIVER_PATH=/usr/bin/chromedriver
WORKDIR /app
# Install Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY . .
# Run app
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]