File size: 495 Bytes
0faa1e7
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Static dashboard served on the port Hugging Face Spaces expects (7860).
# The app is a single HTML page + precomputed data; no backend logic is needed,
# so a tiny static file server is all that's required.
FROM python:3.12-slim

WORKDIR /app

# Only the files the browser actually needs.
COPY index.html app.js data.js data.json ./

EXPOSE 7860

# Serve from /app on 0.0.0.0:7860. index.html is returned for "/".
CMD ["python", "-m", "http.server", "7860", "--bind", "0.0.0.0"]