Skip to content

Commit

Permalink
run entry with dumb-init and fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
cybercoder-naj committed Oct 20, 2024
1 parent 6d58d5a commit ab6c766
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collection/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 2 additions & 1 deletion collection/entry.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ab6c766

Please sign in to comment.