Single Flask codebase runs in agent mode (serves /api/stats from local /proc) or dashboard mode (aggregates local + remote agents). Currently monitors compute1 (64-core, podman container) and console (16-core, bare systemd service). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
217 B
Docker
12 lines
217 B
Docker
FROM python:3.11-slim
|
|
|
|
RUN pip install --no-cache-dir flask gunicorn
|
|
|
|
WORKDIR /app
|
|
COPY app.py .
|
|
COPY templates/ templates/
|
|
|
|
EXPOSE 8083
|
|
|
|
CMD ["gunicorn", "-b", "0.0.0.0:8083", "-w", "1", "--threads", "2", "app:app"]
|