From 1e2b1bcec608819675a69667dff58ff97b5de35c Mon Sep 17 00:00:00 2001 From: Om Lanke Date: Thu, 25 Sep 2025 14:41:24 +0530 Subject: [PATCH] mkdir fix --- apps/admin/Dockerfile | 5 ++++- apps/student/Dockerfile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/admin/Dockerfile b/apps/admin/Dockerfile index 7d5f137..40aaa5e 100644 --- a/apps/admin/Dockerfile +++ b/apps/admin/Dockerfile @@ -56,7 +56,10 @@ RUN adduser --system --uid 1001 nextjs # Copy the standalone output 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/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 RUN mkdir .next diff --git a/apps/student/Dockerfile b/apps/student/Dockerfile index 755c53e..e895dcb 100644 --- a/apps/student/Dockerfile +++ b/apps/student/Dockerfile @@ -57,7 +57,10 @@ RUN adduser --system --uid 1001 nextjs # Copy the standalone output 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/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 RUN mkdir .next