Anu159's picture
Fix Streamlit upload 403 using Docker
2c112d4 verified
raw
history blame contribute delete
364 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system deps (needed for PIL)
RUN apt-get update && apt-get install -y \
libgl1 \
&& rm -rf /var/lib/apt/lists/*
# Copy files
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8501
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]