HUB
Sign inSign up
node-web-app logo

sunrays86/node-web-app

By sunrays86

•Updated about 8 years ago

Docker image to run the nodejs application

Image
0

138

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
Recent tags
Content type
Image
Digest
Size
254 MB
Last updated
about 8 years ago
docker pull sunrays86/node-web-app:latest