From 31fc4c444f0cc3a953cfa21a94d7b7dde4b404bc Mon Sep 17 00:00:00 2001 From: MajoBerger <88670521+MajoBerger@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:06:08 +0100 Subject: [PATCH] change entrypoint so that containers has less logs and restarts (#412) --- Dockerfile | 2 +- docker/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 75c7f2483b0..9c0ef481aaa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,4 @@ RUN yarn install --network-timeout 300000 RUN apk add tzdata RUN yarn build:prod RUN npm install pm2 -g -CMD /bin/sh -c "pm2 start dspace-ui.json && pm2 logs" +CMD /bin/sh -c "pm2-runtime start dspace-ui.json > /dev/null 2> /dev/null" diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 1934f477f59..21c8adec4fd 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -31,7 +31,7 @@ services: dockerfile: Dockerfile networks: dspacenet: - entrypoint: ${FE_CMD:-/bin/sh -c "pm2 start dspace-ui.json && pm2 logs"} + entrypoint: ${FE_CMD:-/bin/sh -c "pm2-runtime start dspace-ui.json > /dev/null 2> /dev/null"} ports: - published: 400${INSTANCE} target: 4000