question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lasted version of Nuxt not able to run in a container

See original GitHub issue

Environment

~/website$ npx nuxi info Nuxt CLI v3.0.0-27415326.3c563fa 18:46:07 RootDir: /home/xxxx/website 18:46:08 Nuxt project info: 18:46:08


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-27415326.3c563fa
  • Package Manager: npm@8.5.0
  • Bundler: Vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

If a project with one of the latest versions of nuxt is built and containerized into a docker container, the server will not be accessible. But if you use an older version of Nuxt, keeping everything the same will not happen. for example 3.0.0-27389502.88da719 it run with no problem.

Describe the bug

The build server is not listening/responding to any call.

Additional context

The latest version of docker is been used, on a Linux server and on WSL.

Logs

No error logs are printed, it looks like everything is ok from the LOGs.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
danielroecommented, Apr 20, 2022

The environment variable to set is now NITRO_HOST or HOST, documented at https://nitro.unjs.io/deploy/node.html#environment-variables.

0reactions
Skywrath-Magecommented, Apr 20, 2022

Hello Daniel, yes, it was, maybe it is a good idea to change the documentation from nuxt because I got confused here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nuxt app is not recompiling in Docker container on Windows ...
Versions nuxt: ex: v2.15.3 node: lts-alpine docker image ... laptop and run docker-compose up and I go into the associated container.
Read more >
nuxt: not found inside docker image - Stack Overflow
On my dockerfile I had this line of code COPY .npmrc package.json sdx ./ . Sdx is an internal package of my company...
Read more >
Layouts directory - Nuxt
Layouts are a great help when you want to change the look and feel of your Nuxt app. Whether you want to include...
Read more >
10 best practices to containerize Node.js web applications ...
Copy that to a file named Dockerfile , then build and run it. ... Furthermore, many security vulnerabilities scanners can't easily detect ...
Read more >
Get started with Vuetify
If you have not already created a new Vue.js project using Vue CLI, ... Ensure that you have the latest version of Vue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found