mkdir fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user