CoolFace
Apppublic

ToTeMM/code-complexity-visualizer

sourceHugging Faceotherupdated 11mo agoView on Hugging Face
0likes
Dockerfile22 linesDownload Raw Back to root
1FROM python:3.10-slim
2
3# Install minimal build tools for some Python wheels
4RUN apt-get update && apt-get install -y --no-install-recommends \
5	build-essential \
6	&& rm -rf /var/lib/apt/lists/*
7
8WORKDIR /app
9
10# Install dependencies first for better layer caching
11COPY requirements.txt ./
12RUN pip install --no-cache-dir -r requirements.txt
13
14# Copy application code
15COPY . .
16
17ENV PYTHONUNBUFFERED=1 \
18	STREAMLIT_BROWSER_GATHERUSAGESTATS=false
19
20# Hugging Face Spaces injects $PORT; run headless and disable CORS/XSFR
21CMD ["bash", "-lc", "streamlit run app.py --server.address 0.0.0.0 --server.port ${PORT:-7860} --server.headless true --server.enableCORS false --server.enableXsrfProtection false"]
22