vincelwt commited on
Commit
2f2d9c6
1 Parent(s): cab1544

Add postgres dependency

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -27,7 +27,8 @@ COPY . .
27
  # Uncomment the following line in case you want to disable telemetry during the build.
28
  # ENV NEXT_TELEMETRY_DISABLED 1
29
 
30
- RUN yarn build
 
31
 
32
  # If using npm comment out above and use below instead
33
  # RUN npm run build
@@ -62,4 +63,4 @@ ENV PORT 3000
62
  # set hostname to localhost
63
  ENV HOSTNAME "0.0.0.0"
64
 
65
- CMD ["node", "server.js"]
 
27
  # Uncomment the following line in case you want to disable telemetry during the build.
28
  # ENV NEXT_TELEMETRY_DISABLED 1
29
 
30
+ RUN --mount=type=secret,id=POSTGRES_URL,mode=0444,required=true \
31
+ yarn build
32
 
33
  # If using npm comment out above and use below instead
34
  # RUN npm run build
 
63
  # set hostname to localhost
64
  ENV HOSTNAME "0.0.0.0"
65
 
66
+ CMD ["node", "server.js"]