Dheeraj-13's picture
Fix UI: Dynamic metric deltas
feeee2f
raw
history blame contribute delete
884 Bytes
FROM python:3.10-slim-bullseye
WORKDIR /app
ENV CACHE_BUST=20251216_1527
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Create user
RUN useradd -m -u 1000 user
# Copy files and fix permissions
COPY --chown=user:user . .
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Generate data
RUN python mi_platform/data/ingestion.py
# Expose port
EXPOSE 7860
# Run simplified dashboard that will work
CMD ["python", "-m", "streamlit", "run", "mi_platform/ui/dashboard.py", \
"--server.port=7860", \
"--server.address=0.0.0.0", \
"--server.headless=true", \
"--server.fileWatcherType=none", \
"--browser.gatherUsageStats=false"]