Sign inSign up

liamli2020/exercise15node

By liamli2020

•Updated about 5 years ago

This is one answer to docker exercise15.

Image
0

157

liamli2020/exercise15node repository overview

This is a really simple Node.js app. You can find the tutorial here: https://nodejs.org/de/docs/guides/nodejs-docker-webapp/⁠

This is available Dockerfile (word in big font is annotation):

FROM node:14

⁠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

⁠If you are building your code for production

⁠RUN npm ci --only=production

⁠Bundle app source

COPY . .

EXPOSE 8080

CMD [ "node", "server.js" ]

Tag summary

Content type

Image

Digest

Size

346.8 MB

Last updated

about 5 years ago

docker pull liamli2020/exercise15node