FROM python:3.12-slim | |
WORKDIR /app | |
USER root | |
RUN apt-get update && \ | |
apt-get install -y git && \ | |
rm -rf /var/lib/apt/lists/* | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
RUN chmod 777 -R /app | |
EXPOSE 8501 | |
CMD ["streamlit", "run", "app.py"] |