You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/09/10 18:19:48 UTC
(superset) branch master updated: fix(docker): install the frontend from the lockfile in docker-frontend.sh (#43168)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 3f644427851 fix(docker): install the frontend from the lockfile in docker-frontend.sh (#43168)
3f644427851 is described below
commit 3f64442785110652a8b9d027ea126a2d999ed9a8
Author: Bikash <bi...@gmail.com>
AuthorDate: Thu Sep 10 23:49:41 2026 +0530
fix(docker): install the frontend from the lockfile in docker-frontend.sh (#43168)
Co-authored-by: bikashJMV <bi...@jmv.co.in>
Co-authored-by: Claude Opus 5 (1M context) <no...@anthropic.com>
---
docker-compose.yml | 19 ++++++++++++++++++-
docker/docker-frontend.sh | 6 ++++--
2 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index 3d3ff242e19..0ce3d27d9fa 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -217,7 +217,24 @@ services:
required: true
- path: docker/.env-local # optional override
required: false
- volumes: *superset-volumes
+ # Same shared bind mounts as the other services (repeated rather than
+ # aliased so an anonymous volume can be added over node_modules, keeping
+ # it container-managed). docker-frontend.sh now runs `npm ci`, which
+ # deletes node_modules before reinstalling; without this the delete+
+ # recreate lands directly on the host's bind-mounted directory, and this
+ # container has no `user: *superset-user` override (unlike
+ # superset-init/superset/superset-worker*), so it runs as the image's
+ # default root user and leaves the host copy root-owned.
+ volumes:
+ - ./docker:/app/docker
+ - ./superset:/app/superset
+ - ./superset-core:/app/superset-core
+ - ./superset-frontend:/app/superset-frontend
+ - /app/superset-frontend/node_modules
+ - superset_home:/app/superset_home
+ - ./tests:/app/tests
+ - superset_data:/app/data
+ - ./local_extensions:/app/local_extensions
superset-worker:
build:
diff --git a/docker/docker-frontend.sh b/docker/docker-frontend.sh
index 7a1cb15ae75..afe66c8910f 100755
--- a/docker/docker-frontend.sh
+++ b/docker/docker-frontend.sh
@@ -32,8 +32,10 @@ if [ "$BUILD_SUPERSET_FRONTEND_IN_DOCKER" = "true" ]; then
npm run prune
fi
- echo "Running \"npm install\""
- npm install
+ # Install from the committed lockfile so a dev image build resolves the same
+ # versions that were reviewed, matching the `npm ci` used in the Dockerfile.
+ echo "Running \"npm ci\""
+ npm ci
echo "Start webpack dev server"
# start the webpack dev server, serving dynamically at http://localhost:9000