Skip to content

Commit 07ac20e

Browse files
committed
add asset dir for volume mapping
1 parent a1c33a1 commit 07ac20e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ container system start
5858
echo "Pulling the latest image: instavm/coderunner"
5959
container image pull instavm/coderunner
6060

61+
echo "→ Ensuring coderunner assets directory…"
62+
ASSETS_SRC="$HOME/.coderunner/assets"
63+
mkdir -p "$ASSETS_SRC"
64+
6165
# Run the command to start the sandbox container
6266
echo "Running: container run --name coderunner --detach --rm --cpus 8 --memory 4g instavm/coderunner"
63-
container run --volume "$(pwd)/public/assets:/app/uploads" --name coderunner --detach --rm --cpus 8 --memory 4g instavm/coderunner
67+
container run --volume "$ASSETS_SRC:/app/uploads" --name coderunner --detach --rm --cpus 8 --memory 4g instavm/coderunner
6468

6569
echo "✅ Setup complete. MCP server is available at http://coderunner.local:8222/mcp"

0 commit comments

Comments
 (0)