This image is based on our Alpine Linux image.
It actually contains four different images. But all of them are meant for node.js application.
The minimal image for running applications. Contains only node.js. Built using multi-stage build from official Node.js Alpine image.
Based on cookielab/nodejs:server-<version> image. It's for building application. It contains yarn, npm, python (for Gym deps.) and git.
Based on cookielab/nodejs:server-<version> image. It's for building application. It contains corepack and git.
Build upon tag corepack-<version> is passed.
Its built with nodejs:20.12.2 by default
Based on cookielab/nodejs:build-<version> image. It's for building frontend application. It contains few more libraries needed for optimization images and other frontend stuff.
The Node.js version is controlled via Git tags. When you create a tag, it automatically becomes the Node.js version for all images:
# Build Node.js 20.12.2 images
git tag 20.12.2-1 && git push origin 20.12.2
# Build Node.js 18.16.0 images
git tag 18.16.0-1 && git push origin 18.16.0
# Build corepack with specific version
git tag corepack-0.33.0 && git push origin corepack-0.33.0
There is no latest tag on this image.
Note: entrypoint is not set to node itself but to shell, so you don't need to overwrite it.
FROM cookielab/nodejs:20.12.2
# ...
# your commands
# ...
USER 1987
ONBUILD USER root
CMD ["node", "/some-path/your-script.js"]
Content type
Image
Digest
sha256:0af75d8c0…
Size
217.7 MB
Last updated
7 months ago
docker pull cookielab/nodejs:24