You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ha...@apache.org on 2026/05/22 14:23:31 UTC

(superset) branch master updated: fix(docker): add missing `service-worker.js` into built container image (#39596)

This is an automated email from the ASF dual-hosted git repository.

hainenber 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 f4af6a2caf0 fix(docker): add missing `service-worker.js` into built container image (#39596)
f4af6a2caf0 is described below

commit f4af6a2caf01e9f2e1b06673b9153e90bedd8b55
Author: Đỗ Trọng Hải <41...@users.noreply.github.com>
AuthorDate: Fri May 22 21:23:21 2026 +0700

    fix(docker): add missing `service-worker.js` into built container image (#39596)
    
    Signed-off-by: hainenber <do...@gmail.com>
---
 Dockerfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index d77b73b547a..fe145d5d733 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -202,6 +202,8 @@ RUN mkdir -p /app/data && chown -R superset:superset /app/data
 
 # Copy compiled things from previous stages
 COPY --from=superset-node /app/superset/static/assets superset/static/assets
+# Copy service.worker.js optionall as it doesn't exist when DEV_MODE=true
+COPY --from=superset-node /app/superset/static/service-worker.j[s] superset/static/service-worker.js
 
 # TODO, when the next version comes out, use --exclude superset/translations
 COPY superset superset