From a4592849579470675b13b86b41a641faeb258c71 Mon Sep 17 00:00:00 2001 From: Juan Calderon-Perez <835733+gaby@users.noreply.github.com> Date: Wed, 15 Sep 2021 21:35:37 -0400 Subject: [PATCH] Add dumb-init to avoid zombie processes. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index de1b453..89f0c08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM node:14-alpine # Install Linux packages -RUN apk add -U wireguard-tools +RUN apk add -U --no-cache wireguard-tools dumb-init # Copy Web UI COPY src/ /app/ @@ -16,4 +16,4 @@ EXPOSE 51821/tcp ENV DEBUG=Server,WireGuard # Run Web UI -CMD ["node", "server.js"] +CMD ["/usr/bin/dumb-init", "node", "server.js"]