It depends on how much control you want over node js version and any additional tooling you need in you Docker image. If you look at Dockerfile for official node js image(https://github.com/nodejs/docker-node), they use alpine as base. I personally prefer to use official images for production since that has been stress tested.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Best way to build an image | 2 | 864 | May 21, 2023 | |
| How to Use the Node Docker Official Image - Docker | 0 | 761 | November 2, 2022 | |
| What is the best practice to install NodeJs and NPM | 2 | 274 | October 2, 2025 | |
| What is the purpose of adding user and group in these official Dockerfiles? | 5 | 5676 | April 2, 2023 | |
| Create own Docker image | 5 | 667 | June 23, 2021 |