Sign inSign up

adorsys/node

By adorsys

Updated 17 days ago

Base Node Image

Image
0

100K+

adorsys/node repository overview

adorsys/node

https://hub.docker.com/r/adorsys/node/

Description

Provides node. Should be used for runtime containers.

Example Dockerfile

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.

Memory limit auto configuration

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.

Environment variables

NameDescriptionDefault
ENABLE_AUTO_NODE_MEMORY_LIMITEnable Memory limit auto configurationtrue
NODE_MEMORY_LIMIT_PERCENTratio of memory limit80

Entrypoint hooks

If you need to run addition logic on container start just copy your shell script to /docker-entrypoint.d/.

Tags

NameDescriptionSize
10Alias of 10-ubi-8
12Alias of 12-ubi-8
14Alias of 14-ubi-8
10-ubi-8UBI based image Node 10
12-ubi-8UBI based image Node 12
14-ubi-8UBI based image Node 14

Tag summary

Content type

Image

Digest

sha256:f23179c0c

Size

753 Bytes

Last updated

17 days ago

docker pull adorsys/node:dockerhub