diff --git a/Dockerfile b/Dockerfile index c76c5cf1e79..31d51e6ce43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,4 +22,4 @@ RUN yarn install --network-timeout 2000000 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