Spaces:
Paused
Paused
Dockerfile: use mkdir -p .next
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -20,7 +20,10 @@ ENV NODE_ENV production
|
|
| 20 |
ENV NEXT_TELEMETRY_DISABLED 1
|
| 21 |
|
| 22 |
COPY --from=base /app/public ./public
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
COPY --from=base --chown=node:node /app/.next/standalone ./
|
| 25 |
COPY --from=base --chown=node:node /app/.next/static ./.next/static
|
| 26 |
|
|
|
|
| 20 |
ENV NEXT_TELEMETRY_DISABLED 1
|
| 21 |
|
| 22 |
COPY --from=base /app/public ./public
|
| 23 |
+
# .next might already exist if it was copied in the 'COPY . .' step above
|
| 24 |
+
# (though it shouldn't be if it's in .dockerignore or not in the context)
|
| 25 |
+
# Standalone output already contains .next/standalone
|
| 26 |
+
RUN mkdir -p .next && chown node:node .next
|
| 27 |
COPY --from=base --chown=node:node /app/.next/standalone ./
|
| 28 |
COPY --from=base --chown=node:node /app/.next/static ./.next/static
|
| 29 |
|