Add truenas-mcp/Dockerfile
This commit is contained in:
parent
1d13495c93
commit
523e143f74
1 changed files with 18 additions and 0 deletions
18
truenas-mcp/Dockerfile
Normal file
18
truenas-mcp/Dockerfile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
FROM python:3.12-slim-bookworm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY truenas_mcp.py .
|
||||
COPY entrypoint.py .
|
||||
|
||||
ENV PORT=8100
|
||||
|
||||
EXPOSE 8100
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s \
|
||||
CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8100/mcp', timeout=5)"
|
||||
|
||||
CMD ["python3", "entrypoint.py"]
|
||||
Loading…
Reference in a new issue