Writing Dockerfiles for Node.js Web Apps
blog.hasura.io
Writing Dockerfiles for Node.js Web Apps
1–10 of 37 posts
Re: Writing Dockerfiles for Node.js Web Apps
#2To the author: could you elaborate on the differences between carbon and alpine base images please? I can obviously go look this up, but this was the one part of the guide that was new to me. Your description wasn't enough to give me a complete understanding, so perhaps you could explain a bit more about carbon and alpine? Thanks.
Re: Writing Dockerfiles for Node.js Web Apps
#3Then in a docker-compose.override.yml,
command: nodemon --inspect=0.0.0.0:5858 /code/bin/www
To allow for debugging as well. We delete that .override.yml file as part of the CI build/deploy.Re: Writing Dockerfiles for Node.js Web Apps
#4Isn't using the same container everywhere the actual selling point for containers?
Re: Writing Dockerfiles for Node.js Web Apps
#5I've used Docker for things like complicated java dev environments. But it seems over-applied for basic web apps.
Re: Writing Dockerfiles for Node.js Web Apps
#6Re: Writing Dockerfiles for Node.js Web Apps
#7When does it make sense to run Node on docker vs Heroku dynos or something similar? Is it just a cost thing at a certain number? Are these significantly specialized containers? The types mentioned in the doc seem like basic web apps. I've used Docker for things like complicated java dev environments. But it seems over-applied for basic web apps.
Re: Writing Dockerfiles for Node.js Web Apps
#8> Using an appropriate base image (carbon for dev, alpine for production). Isn't using the same container everywhere the actual selling point for containers?
Re: Writing Dockerfiles for Node.js Web Apps
#9Nice post, and very close to my experiences with Dockerfiles for node. To the author: could you elaborate on the differences between carbon and alpine base images please? I can obviously go look this up, but this was the one part of the guide that was new to me. Your description wasn't enough to give me a complete understanding, so perhaps you could explain a bit more about carbon and alpine? Thanks.
Re: Writing Dockerfiles for Node.js Web Apps
#10Kill me
CMD ["kill", "-n", "self"]