Sign inSign up

nafigat0r/node

By nafigat0r

Updated about 5 years ago

JavaScript runtime built on Chrome's V8 JavaScript engine

Image
0

569

nafigat0r/node repository overview

Versions

Node 14.17.3

How to use this image

Initialise UID
export UID

If you does not use bash-shell initialize UID variable with your current user ID. Example:

export UID=1000
Create a docker-compose.yml

Suggested path for docker-compose.yml root of your project.

version: '3.6'
services:
  node:
    image: nafigat0r/node:14
    user: ${UID}:${UID}
    command: ["node", "script.js"]
    volumes:
      - ./:/var/www/html/
    restart: unless-stopped
Run container via docker-compose
docker-compose up -d --remove-orphans
Run container via docker
docker run --user $(id -u):$(id -g) --rm -ti nafigat0r/node:14 --version

Tag summary

Content type

Image

Digest

Size

201.7 MB

Last updated

about 5 years ago

docker pull nafigat0r/node:14