Files
rainyy21 5f70813202 Move web app up a level, live dashboard refresh, self-update
- web: move app/web/web/* to app/web/, drop the old standalone compose
  file and watcher_additions.py (merged into watcher.py)
- web: /api/version fingerprint of state, config and queued requests;
  the page polls it every 2s and reloads as soon as the watcher acts
- watcher: self-update. When its own branch has a new commit and the
  checkout is clean, start a one-off gitops-watcher-updater container
  that runs git pull + docker compose up -d --build on the host checkout
- watcher: refuse to deploy/stop/remove its own compose project, which
  used to stop the watcher itself mid-way

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 16:17:05 -05:00

17 lines
366 B
Docker

FROM python:3.12-alpine
RUN apk add --no-cache git docker-cli docker-cli-compose && git config --global --add safe.directory '*'
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# watcher.py + cli.py, and web/ for the gitops-web service (same image)
COPY app/ ./
ENV PYTHONUNBUFFERED=1
CMD ["python", "/app/watcher.py"]