model-race-lab / Dockerfile
Trae Assistant
Initial commit: Enhanced Model Race Lab with demo data and UI fixes
88bd614
raw
history blame contribute delete
534 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies if needed (e.g. for sklearn build sometimes)
# But usually slim is enough for wheels.
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Create a non-root user for Hugging Face Spaces security
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
EXPOSE 7860
CMD ["python", "app.py"]