Sign inSign up

sunrays86/node-web-app

By sunrays86

•Updated almost 8 years ago

Docker image to run the nodejs application

Image
0

91

sunrays86/node-web-app repository overview

#Getting the base image form dockerHub FROM node:8

⁠Create app directory

WORKDIR /usr/src/app

⁠Install app dependencies

⁠A wildcard is used to ensure both package.json AND package-lock.json are copied

⁠where available (npm@5+)

COPY package*.json ./

RUN npm install

⁠Bundle app source

COPY . .

EXPOSE 8080

CMD [ "npm", "start" ]

Tag summary

Content type

Image

Digest

Size

254 MB

Last updated

almost 8 years ago

docker pull sunrays86/node-web-app