実現したいこと
next.jsをdocker内で実行したい
前提
node imageを元にコンテナを作成
その中でnpx create-next-app myapp --typescript
を実行しnpm run dev
を実行
発生している問題・エラーメッセージ
ログでは正常に動いてるように見えますがローカルのクロームにhttp://localhost:3000と入力してもつながりません。
> myapp@0.1.0 dev > next dev ready - started server on 0.0.0.0:3000, url: http://localhost:3000 event - compiled client and server successfully in 5s (165 modules) Attention: Next.js now collects completely anonymous telemetry regarding usage. This information is used to shape Next.js' roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: https://nextjs.org/telemetry
ポートマッピングしてますか?

回答1件
あなたの回答
tips
プレビュー