sadickam's picture
Update Dockerfile
33e69aa verified
# ── Base image ───────────────────────────────────────────
FROM python:3.11-slim
# ── Set working directory ────────────────────────────────
WORKDIR /app
# ── Python dependencies ──────────────────────────────────
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ── Copy application code & data ─────────────────────────
COPY streamlit_app.py .
COPY subthemes_long.csv .
COPY major_themes_long.csv .
# --- fix: make /.streamlit writable for any UID ---------------
RUN mkdir -p /.streamlit && chmod 777 /.streamlit
EXPOSE 8501
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", \
"--server.port=8501", "--server.address=0.0.0.0", \
"--server.enableCORS=false", "--server.enableXsrfProtection=false"]