Harden ARR MCP tool surface and installer
This commit is contained in:
1 parent
0008dd3b3e
commit
da6e762d72
9 files changed
+380
-301
No files matched your search
@@ -1,4 +1,4 @@
|
||||
FROM python:3.13-slim AS builder
|
||||
FROM python:3.14-slim@sha256:cea0e6040540fb2b965b6e7fb5ffa00871e632eef63719f0ea54bca189ce14a6 AS builder
|
||||
|
||||
ARG ARR_MCP_VERSION=1.0.1
|
||||
|
||||
@@ -14,7 +14,7 @@ RUN site_packages="$(/opt/arr-mcp/venv/bin/python -c 'import site; print(site.ge
|
||||
&& install -m 0644 /tmp/mcp_radarr.py "$site_packages/arr_mcp/mcp/mcp_radarr.py" \
|
||||
&& /opt/arr-mcp/venv/bin/python -m compileall -q "$site_packages/arr_mcp/mcp"
|
||||
|
||||
FROM python:3.13-slim
|
||||
FROM python:3.14-slim@sha256:cea0e6040540fb2b965b6e7fb5ffa00871e632eef63719f0ea54bca189ce14a6
|
||||
|
||||
RUN groupadd --system --gid 10001 arrmcp \
|
||||
&& useradd --system --uid 10001 --gid 10001 --no-create-home arrmcp
|
||||
@@ -23,6 +23,9 @@ COPY --from=builder /opt/arr-mcp /opt/arr-mcp
|
||||
COPY services/arr-mcp/run.sh /usr/local/bin/run-arr-mcp
|
||||
|
||||
ENV PATH="/opt/arr-mcp/venv/bin:${PATH}" \
|
||||
HOME=/tmp \
|
||||
XDG_CONFIG_HOME=/tmp/.config \
|
||||
XDG_CACHE_HOME=/tmp/.cache \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
@@ -32,6 +35,6 @@ USER 10001:10001
|
||||
EXPOSE 8000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
|
||||
CMD python -c "import socket; s=socket.create_connection(('127.0.0.1',8000),3); s.close()"
|
||||
CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=3)"
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/run-arr-mcp"]
|
||||
Reference in new issue
Block a user