From fcd706f03ee41810d40874b234cdb3edd6c7d6e8 Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Fri, 15 Nov 2024 08:37:14 +0100 Subject: [PATCH] Update swarm_visualizer_dockerfile --- swarm_visualizer_dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swarm_visualizer_dockerfile b/swarm_visualizer_dockerfile index 6adf308..a597ed7 100644 --- a/swarm_visualizer_dockerfile +++ b/swarm_visualizer_dockerfile @@ -21,6 +21,8 @@ RUN wget https://github.com/yandeu/docker-swarm-visualizer/archive/refs/heads/ma RUN mv /docker-swarm-visualizer-main/package*.json /usr/src/app/ \ && rm -r /docker-swarm-visualizer-main +USER nobody + RUN npm install --only=prod CMD ["npm", "start"] \ No newline at end of file