Sign inSign up

romson/nodejs

By romson

•Updated over 4 years ago

The base for nodejs application

Image
0

461

romson/nodejs repository overview

The basic image for creating images of a certain application.

⁠Usage

⁠Version > 10

  • Create a Dockerfile in your nodejs application directory with the following content:

    FROM romson/nodejs
    
    WORKDIR /app
    ADD . /app
    RUN npm install
    
    ENTRYPOINT ["/usr/bin/npm", "start"]
    
  • Run the following command in your application directory:

    docker build -t my/app .
    

⁠Version < 10

  • Create a Dockerfile in your nodejs application directory with the following content:

    FROM romson/nodejs
    
    WORKDIR /app
    ADD . /app
    RUN npm install
    
    ENTRYPOINT ["/nodejs/bin/npm", "start"]
    
  • Run the following command in your application directory:

    docker build -t my/app .
    

Tag summary

Content type

Image

Digest

Size

274.5 MB

Last updated

over 4 years ago

docker pull romson/nodejs:current