Leon4gr45 commited on
Commit
20169a4
·
verified ·
1 Parent(s): cece1db

Dockerfile: use mkdir -p .next

Browse files
Files changed (1) hide show
  1. 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
- RUN mkdir .next && chown node:node .next
 
 
 
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