File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 23
23
# Replace "postgres:postgres" with "<username>:<password>"
24
24
# And docsoc-tools-collection with the name of the database you are using
25
25
COLLECTION_DATABASE_URL="postgres://postgres:postgres@localhost:5432/docsoc-tools-collection"
26
+
27
+ # Optional PSQL certicate if the connection occurs over SSL
28
+ PG_CERT=
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ COPY --from=builder /build/collection/.next/standalone/common ./
46
46
COPY --from=builder /build/collection/.next/standalone/package.json ./
47
47
COPY --from=builder /build/collection/.next/standalone/node_modules ./node_modules
48
48
COPY --from=builder /build/collection/.next/static ./.next/static
49
+ COPY --from=builder /build/collection/entry.sh ./entry.sh
49
50
COPY --from=builder --chown=node:node /build/collection/prisma ./prisma
50
51
51
52
@@ -60,4 +61,4 @@ EXPOSE 3000
60
61
# Learn more here: https://nextjs.org/telemetry
61
62
# Uncomment the following line in case you want to disable telemetry.
62
63
ENV NEXT_TELEMETRY_DISABLED=1
63
- CMD ["dumb-init" , "node" , "server.js " ]
64
+ CMD ["./entry.sh " ]
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/dumb-init /bin/sh
2
+
3
+ # This is to be used with the Docker Container only!
4
+ # The script loads the PSQL certificate and starts the server.
5
+
6
+ echo $PG_CERT > ./prisma/postgres.crt
7
+
8
+ node server.js
You can’t perform that action at this time.
0 commit comments