Files
serverdash/Dockerfile
T
OpenClaw Coder 8289bc85e8 Add ServerDash: self-hosted Docker & host monitoring dashboard
- Flask backend + static SPA (HTML/CSS/JS)
- Docker container discovery via unix socket (stdlib only, no docker SDK)
- Host stats (CPU/mem/disk/load/uptime) via psutil
- Live-updating UI with per-state filters and resource gauges
- Dockerfile for containerized deployment
2026-11-11 00:15:58 +10:00

20 lines
420 B
Docker

FROM python:3.11-slim
WORKDIR /app
# The socket is only *mounted* at runtime, so nothing is needed at build time.
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app
# Container discovery reads the socket mounted into the container.
ENV DOCKER_SOCKET=/var/run/docker.sock \
PORT=8787 \
HOST_BIND=0.0.0.0 \
REFRESH_INTERVAL=3
EXPOSE 8787
CMD ["python", "main.py"]