Spaces:
Build error
Build error
attempt fix build
Browse files- 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 |
-
|
|
|
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
|