fix: correct static file paths in Docker for Next.js standalone mode
This commit is contained in:
parent
c7a45e9c41
commit
91223b6f5d
|
|
@ -37,8 +37,8 @@ RUN adduser --system --uid 1001 nextjs
|
||||||
|
|
||||||
# Copy built application
|
# Copy built application
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/apps/web/.next/standalone ./
|
COPY --from=builder --chown=nextjs:nodejs /app/apps/web/.next/standalone ./
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/apps/web/.next/static ./.next/static
|
COPY --from=builder --chown=nextjs:nodejs /app/apps/web/.next/static ./apps/web/.next/static
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/apps/web/public ./public
|
COPY --from=builder --chown=nextjs:nodejs /app/apps/web/public ./apps/web/public
|
||||||
|
|
||||||
# Set up environment
|
# Set up environment
|
||||||
USER nextjs
|
USER nextjs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue