diff --git a/Dockerfile b/Dockerfile index a6a514c..c640627 100644 --- a/Dockerfile +++ b/Dockerfile @@ -79,19 +79,7 @@ RUN tag="$(curl -fsSL https://gitea.com/api/v1/repos/gitea/gitea-mcp/releases/la # hardcodes the InvokeAI URL, so patch it to honor $INVOKEAI_BASE_URL; the # grep fails the build if upstream changes shape and the patch stops landing. RUN uv tool install invokeai-mcp-server && \ - python -c " -import glob -path = glob.glob('/root/.local/share/uv/tools/invokeai-mcp-server/lib/python*/site-packages/invokeai_mcp_server.py')[0] -with open(path) as f: - c = f.read() -c = 'import os\n' + c -c = c.replace( - 'INVOKEAI_BASE_URL = \"http://127.0.0.1:9090\"', - 'INVOKEAI_BASE_URL = os.environ.get(\"INVOKEAI_BASE_URL\", \"http://127.0.0.1:9090\")' -) -with open(path, 'w') as f: - f.write(c) -" && \ + python -c 'import glob; path=glob.glob("/root/.local/share/uv/tools/invokeai-mcp-server/lib/python*/site-packages/invokeai_mcp_server.py")[0]; c=open(path).read(); c="import os\n"+c; c=c.replace("INVOKEAI_BASE_URL = \"http://127.0.0.1:9090\"", "INVOKEAI_BASE_URL = os.environ.get(\"INVOKEAI_BASE_URL\", \"http://127.0.0.1:9090\")"); open(path,"w").write(c)' && \ grep -q 'INVOKEAI_BASE_URL = os.environ.get' \ /root/.local/share/uv/tools/invokeai-mcp-server/lib/python*/site-packages/invokeai_mcp_server.py diff --git a/README.md b/README.md index 0ea761f..dc77358 100644 --- a/README.md +++ b/README.md @@ -38,12 +38,18 @@ docker buildx build --no-cache -t 4lights/claudaris:latest . Make sure the volumes are as you like and start the container. ``` sudo ./claudaris start +or +docker compose up -d ``` ## Connect to the container ``` sudo ./claudaris connect +# or +docker compose exec claudaris bash +# or +docker compose exec claudaris tmux ``` ## Stop and remove the container