Skip to content

Docker deploy + docker-compose + Turborepo, error GET [domain]/_next/static/chunks/main-5ca276d0a9824a26.js net::ERR_ABORTED 404 #3569

Closed Answered by wootsbot
wootsbot asked this question in Help
Discussion options

You must be logged in to vote

I think I solved this with these lines.

# Don't run production as root
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
USER nextjs

COPY --from=installer /app/auth/next.config.js .
COPY --from=installer /app/auth/package.json .

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=installer --chown=nextjs:nodejs /app/auth/.next/standalone ./
COPY --from=installer --chown=nextjs:nodejs /app/auth/public ./public
- COPY --from=installer --chown=nextjs:nodejs /app/auth/.next ./auth/.next
+ COPY --from=installer --chown=nextjs:nodejs /app/spin-auth/.next ./.next
COPY --from=install…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wootsbot
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant