Skip to content

Commit

Permalink
change entrypoint so that containers has less logs and restarts (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
MajoBerger committed Dec 11, 2023
1 parent feae6c9 commit 6ff0f0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ff0f0a

Please sign in to comment.