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

attempt fix build

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -27,8 +27,9 @@ 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 --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
 
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 export POSTGRES_URL=$(cat /run/secrets/POSTGRES_URL)
31
+
32
+ RUN yarn build
33
 
34
  # If using npm comment out above and use below instead
35
  # RUN npm run build