From e994e302fc53f0ff4a177d50b9d5abce8ad07a27 Mon Sep 17 00:00:00 2001 From: Marker689 Date: Mon, 11 May 2026 21:02:38 +0300 Subject: [PATCH] build: .dockerignore, pin guarddog>=2.10.0, Docker HEALTHCHECK --- .dockerignore | 15 +++++++++++++++ Dockerfile | 5 ++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..990531f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,15 @@ +**/__pycache__ +**/.pytest_cache +**/.ruff_cache +**/.mypy_cache +*.pyc +.git +.opencode +.agents +.playwright-mcp +*.png +.env +data/ +examples/ +scripts/ +skills-lock.json diff --git a/Dockerfile b/Dockerfile index 4275ad6..9c8e53b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ COPY pyproject.toml README.md ./ COPY guarddog_nexus/ guarddog_nexus/ RUN uv pip install . --system -RUN uv pip install --system guarddog +RUN uv pip install --system "guarddog>=2.10.0" RUN mkdir -p /data /tmp/guarddog-nexus @@ -21,4 +21,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 EXPOSE 8080 +HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ + CMD python -c "from urllib.request import urlopen; urlopen('http://localhost:8080/health')" + CMD ["python", "-m", "guarddog_nexus.main"]