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