File size: 884 Bytes
e013de7 a4e089e feeee2f a4e089e 8c1a19c 339d065 bbeec91 339d065 8c1a19c bbeec91 a4e089e 8c1a19c fb65b44 8c1a19c 54ced87 a4e089e 339d065 8c1a19c 6a9f965 8c1a19c 339d065 0335b38 811c9ae 6a9f965 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 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"]
|