From 4470c2ed8714b85169fa1e44e537c687aa338f58 Mon Sep 17 00:00:00 2001 From: Andreas Reinhold / reini Date: Sun, 13 Sep 2026 12:30:53 +0200 Subject: [PATCH] Give the dev container its own node_modules npm installs the build tools' native binaries for the platform it runs on, so a folder shared with the host only ever held Linux's or macOS's. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy --- docker-compose.dev.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index f78f5f4..4b34556 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -8,6 +8,9 @@ services: - "5173:5173" volumes: - .:/app + # Its own node_modules: npm installs the build tools' native binaries for Linux here and for + # the host's platform there, and a shared folder only ever holds one of them. + - /app/node_modules environment: APP_KEY: ${APP_KEY:-} APP_URL: http://localhost:8000