From ab6c766e3fe8743d67c1157720f632266f47303f Mon Sep 17 00:00:00 2001 From: Nishant Aanjaney Jalan Date: Sun, 20 Oct 2024 15:14:10 +0100 Subject: [PATCH] run entry with dumb-init and fix script --- collection/Dockerfile | 2 +- collection/entry.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/collection/Dockerfile b/collection/Dockerfile index ccf1682..827729c 100644 --- a/collection/Dockerfile +++ b/collection/Dockerfile @@ -61,4 +61,4 @@ EXPOSE 3000 # Learn more here: https://nextjs.org/telemetry # Uncomment the following line in case you want to disable telemetry. ENV NEXT_TELEMETRY_DISABLED=1 -CMD ["./entry.sh"] +CMD ["dumb-init", "./entry.sh"] diff --git a/collection/entry.sh b/collection/entry.sh index f39f045..b280dd9 100755 --- a/collection/entry.sh +++ b/collection/entry.sh @@ -1,7 +1,8 @@ +#!/usr/bin/dumb-init /bin/sh + # This is to be used with the Docker Container only! # The script loads the PSQL certificate and starts the server. -#!/usr/bin/dumb-init /bin/sh echo $PG_CERT > ./prisma/postgres.crt node server.js \ No newline at end of file