fix dockerfile
This commit is contained in:
parent
b4cc0ce138
commit
d1d5752094
|
|
@ -41,8 +41,8 @@ RUN adduser --system --uid 1001 nextjs
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
|
|
||||||
# Set the correct permission for prerender cache
|
# Set the correct permission for prerender cache
|
||||||
mkdir .next
|
RUN mkdir .next
|
||||||
chown nextjs:nodejs .next
|
RUN chown nextjs:nodejs .next
|
||||||
|
|
||||||
# Automatically leverage output traces to reduce image size
|
# Automatically leverage output traces to reduce image size
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue