Next.js Discord

Discord Forum

am trying to run nextjs through docker locally

Unanswered
Long-horned bees posted this in #help-forum
Open in Discord
Long-horned beesOP
next public/images are giving me 400, even though inside docker public is correctly copied, I can see the images, using nextjs docker template

COPY --from=builder /app/public ./public

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static

3 Replies

Long-horned beesOP
Unable to optimize image and unable to fallback to upstream image
using correct, Image src path
and in standalone mode