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"]