nodejs
Public repository for ragedunicorn docker nodejs images
83
A minimal Node.js image on Alpine Linux, shipping Alpine's Node.js LTS package and npm pinned to exact versions.
# Pull latest version
docker pull ragedunicorn/nodejs:latest
# Or pull specific version
docker pull ragedunicorn/nodejs:24-alpine3.24.1-1
# Run Node.js interactively (REPL)
docker run -it --rm ragedunicorn/nodejs:latest
# Run a Node.js script
docker run -v $(pwd):/app ragedunicorn/nodejs:latest script.js
docker run -v $(pwd):/app ragedunicorn/nodejs:latest script.js
docker run -it --rm ragedunicorn/nodejs:latest
docker run --rm ragedunicorn/nodejs:latest -e "console.log('Hello, World!')"
# Install dependencies and run a script
docker run -v $(pwd):/app ragedunicorn/nodejs:latest /bin/sh -c "npm install && node script.js"
# Install and run the project test suite
docker run -v $(pwd):/app ragedunicorn/nodejs:latest /bin/sh -c "npm install && npm test"
FROM ragedunicorn/nodejs:latest
# Install additional global packages
USER root
RUN npm install -g typescript
USER node
# Your custom configuration
WORKDIR /app
COPY --chown=node:node . .
RUN npm install
CMD ["app.js"]
This image uses semantic versioning that includes all component versions:
Format: {nodejs_major_version}-alpine{alpine_version}-{build_number}
24-alpine3.24.1-1 - Initial release with Node.js 24 and Alpine 3.24.124-alpine3.24.1-2 - Rebuild of same versions (bug fixes, security patches)24-alpine3.24.2-1 - Alpine Linux patch updatelatest - Most recent stable releaseThe pinned Node.js and npm package versions are fixed per release and tracked by automated dependency management. When updates are available, new releases are created with appropriate version tags.
The default working directory is /app. Mount your code here:
docker run -v $(pwd):/app ragedunicorn/nodejs:latest your_script.js
MIT License - See GitHub repository for details.
Content type
Image
Digest
sha256:89b0f0289…
Size
31.8 MB
Last updated
17 days ago
docker pull ragedunicorn/nodejs