mkdir fix

This commit is contained in:
Om Lanke
2025-09-25 14:41:24 +05:30
parent 1cf801e663
commit 1e2b1bcec6
2 changed files with 8 additions and 2 deletions

View File

@@ -56,7 +56,10 @@ RUN adduser --system --uid 1001 nextjs
# Copy the standalone output # Copy the standalone output
COPY --from=builder /app/apps/admin/.next/standalone ./ COPY --from=builder /app/apps/admin/.next/standalone ./
COPY --from=builder /app/apps/admin/.next/static ./apps/admin/.next/static COPY --from=builder /app/apps/admin/.next/static ./apps/admin/.next/static
COPY --from=builder /app/apps/admin/public ./apps/admin/public
# Create and copy public directory
RUN mkdir -p ./apps/admin/public
COPY --from=builder /app/apps/admin/public/ ./apps/admin/public/
# Set the correct permission for prerender cache # Set the correct permission for prerender cache
RUN mkdir .next RUN mkdir .next

View File

@@ -57,7 +57,10 @@ RUN adduser --system --uid 1001 nextjs
# Copy the standalone output # Copy the standalone output
COPY --from=builder /app/apps/student/.next/standalone ./ COPY --from=builder /app/apps/student/.next/standalone ./
COPY --from=builder /app/apps/student/.next/static ./apps/student/.next/static COPY --from=builder /app/apps/student/.next/static ./apps/student/.next/static
COPY --from=builder /app/apps/student/public ./apps/student/public
# Create and copy public directory
RUN mkdir -p ./apps/student/public
COPY --from=builder /app/apps/student/public/ ./apps/student/public/
# Set the correct permission for prerender cache # Set the correct permission for prerender cache
RUN mkdir .next RUN mkdir .next