https://hub.docker.com/r/adorsys/node/
Provides node. Should be used for runtime containers.
FROM adorsys/node:12-ubi
COPY . .
CMD ["node", "server.js"]
If want to exclude files from your docker image, e.g. documentation,
use a .dockerignore file.
Like Java, node has a virtual machine, too. The V8 VM which has a default heap space of
1200M.
To avoid out of memory errors we auto configure the heapspace by 80% of the docker memory limited.
You can configure the ratio via environment variable NODE_MEMORY_LIMIT_PERCENT oder disable it via ENABLE_AUTO_NODE_MEMORY_LIMIT.
See https://medium.com/@vuongtran/how-to-solve-process-out-of-memory-in-node-js-5f0de8f8464c for more information.
| Name | Description | Default |
|---|---|---|
| ENABLE_AUTO_NODE_MEMORY_LIMIT | Enable Memory limit auto configuration | true |
| NODE_MEMORY_LIMIT_PERCENT | ratio of memory limit | 80 |
If you need to run addition logic on container start just copy your shell script to /docker-entrypoint.d/.
| Name | Description | Size |
|---|---|---|
10 | Alias of 10-ubi-8 | |
12 | Alias of 12-ubi-8 | |
14 | Alias of 14-ubi-8 | |
10-ubi-8 | UBI based image Node 10 | |
12-ubi-8 | UBI based image Node 12 | |
14-ubi-8 | UBI based image Node 14 |
Content type
Image
Digest
sha256:f23179c0c…
Size
753 Bytes
Last updated
17 days ago
docker pull adorsys/node:dockerhub