BizIntel_AI / Dockerfile
mgbam's picture
Update Dockerfile
e8cb742 verified
raw
history blame
1.18 kB
# ─────────────────────────────────────────────────────────────
# BizIntel AI Ultra β€’ HuggingΒ Face Space (Docker + Streamlit)
# ─────────────────────────────────────────────────────────────
FROM python:3.10-slim
# Basic Python settings
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Create app directory & make it the working dir
WORKDIR /app
ENV HOME=/app
# Install Python dependencies
COPY requirements.txt /app/
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy the rest of the source code
COPY . /app
# Fix Streamlit & Matplotlib permission issues
ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
ENV MPLCONFIGDIR=/app/.config/matplotlib
ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false
RUN mkdir -p /app/.streamlit /app/.config/matplotlib
# Expose HuggingΒ Face default port and launch app
EXPOSE 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]