I wanted to share with you all a Dockerfile that I put together over the weekend. I’m calling it “self-contained” because it doesn’t depend on the existence (or maintenance) of any Docker images besides
ubuntu node and node:alpine. It’s a multistage Dockerfile, meaning that the final image is a lean, mean Alpine Linux image with your built server code, runtime dependencies, and nothing else.
It borrows heavily from Docker images made by @kaufmae (pozylon/meteor-docker-auto) and @GeoffreyBooth (geoffreybooth/meteor-base), so many thanks to them (and the rest of the community as well) for sharing their work.
It’s up on Github: banjerluke/meteor-dockerfile
Hope you find it useful, and feel free to suggest improvements or point out where I’ve gone wrong. I’m not very experienced with Docker although I’ve learned a lot through the process of getting this to work!