4 ms·
> it takes literally 10 minutes to Dockerize a Ruby / Python / Node / "just about any language" app once you understand how Docker works. Is there a good refer
by philipodonnell 8y ago
> it takes literally 10 minutes to Dockerize a Ruby / Python / Node / "just about any language" app once you understand how Docker works.
Is there a good reference for "dockerizing" a typical hobbyist/MVP node.js+express+babel+webpack application that would make sense to someone who understands docker and what it is used for but hasn't waded into dockerfiles and the more technical parts? Just to get a simple Ubuntu webserver set up with all the ports exposed correctly and the apps running.
- nickjj 8y agoI have an example Rails repo set up that covers setting up a web app, background worker, Postgres and Redis with Docker. Feel free to use the Dockerfile as inspiration for your Node app. The source for that app template is available at https://github.com/nickjj/orats/tree/master/lib/orats/templates/base https://github.com/nickjj/orats/tree/master/lib/orats/templa.... I think it's worth the effort into learning the Docker and Docker Compose specifics because those skills are what will let you create the files you want. Basically it comes to down to how you would end up setting those things up without Docker, and then transforming those steps into a Dockerfile. If you want to get up to speed with Docker and Docker Compose quickly (but not specifically webpack) I do have an online course available at https://diveintodocker.com/ https://diveintodocker.com/.
- philipodonnell 8y agoThanks for the links!