node ace build --production #4461
-
Hello, I'm trying to dockerize my adonisjs api. I've followed the documentation on your website, but I'm getting the following error that I can't solve, despite several attempts. Thank you in advance for your reply, https://v5-docs.adonisjs.com/cookbooks/dockerizing-adonis
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hey @HadrienM! 👋🏻 Update your Node.js version, it is way too outdated. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks a lot for your answer. I already tried to change the node version of dockerfile, from node:16.13.1-alpine to node:21.7.1-alpine. But that didn't change anything. I also have the latest version of node on my mac, installed via volta. But the error was on the docker container, so I'm not sure it matters which version of node is on my computer.
I'd also like to thank you for your different streams on your twitch channel and the various redifussions on your youtube channel. |
Beta Was this translation helpful? Give feedback.
-
Oh sorry, I didn't see that the docker error had changed. Thanks, I'll have a look at the dockerfile you linked to. |
Beta Was this translation helpful? Give feedback.
You can notice than now you have a different error. 😉
I would recommend to use my
Dockerfile
instead of the one in the cookbook you are reading.Link: https://github.com/RomainLanz/romainlanz.com/blob/main/Dockerfile