BizIntel_AI / Dockerfile
mgbam's picture
Update Dockerfile
a2cba7a verified
Raw History Blame
813 Bytes
FROM python:3.10-slim
# ---------------- Core settings ----------------
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Make /app the working dir + our safe HOME
WORKDIR /app
ENV HOME=/app
# ---------------- Dependencies -----------------
COPY requirements.txt /app/
RUN pip install --upgrade pip && pip install -r requirements.txt
# ---------------- App code ---------------------
COPY . /app
# ---------------- Streamlit / Matplotlib perms --
ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
ENV MPLCONFIGDIR=/app/.config/matplotlib
ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false # disable metrics write
RUN mkdir -p /app/.streamlit /app/.config/matplotlib
# ---------------- Expose + run -----------------
EXPOSE 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]