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 2323# Replace "postgres:postgres" with "<username>:<password>"
2424# And docsoc-tools-collection with the name of the database you are using
2525COLLECTION_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 ./
4646COPY  --from=builder /build/collection/.next/standalone/package.json ./
4747COPY  --from=builder /build/collection/.next/standalone/node_modules ./node_modules
4848COPY  --from=builder /build/collection/.next/static ./.next/static
49+ COPY  --from=builder /build/collection/entry.sh ./entry.sh
4950COPY  --from=builder --chown=node:node /build/collection/prisma ./prisma
5051
5152
@@ -60,4 +61,4 @@ EXPOSE 3000
6061#  Learn more here: https://nextjs.org/telemetry
6162#  Uncomment the following line in case you want to disable telemetry.
6263ENV  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