This image is based on our Alpine Linux image.
It actually contains three different images. But all of them are meant for node.js application.
The minimal image for running applications. Contains only node.js.
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:build-<version>
image. It's for building frontend application. It contains few more libraries needed for optimization images and other frontend stuff.
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:16.13.2
# ...
# your commands
# ...
USER 1987
ONBUILD USER root
CMD ["node", "/some-path/your-script.js"]