Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created March 24, 2019 18:46
Show Gist options
  • Select an option

  • Save 100daysofdevops/6d7092bb4d39f61e14b4c0841a2d88f4 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/6d7092bb4d39f61e14b4c0841a2d88f4 to your computer and use it in GitHub Desktop.
$ docker build -t mynodejsapp:1.0 .
Sending build context to Docker daemon 67.58 kB
Step 1/7 : FROM node:7
Trying to pull repository docker.io/library/node ...
7: Pulling from docker.io/library/node
ad74af05f5a2: Pull complete
2b032b8bbe8b: Pull complete
a9a5b35f6ead: Pull complete
3245b5a1c52c: Pull complete
afa075743392: Pull complete
9fb9f21641cd: Pull complete
3f40ad2666bc: Pull complete
49c0ed396b49: Pull complete
Digest: sha256:af5c2c6ac8bc3fa372ac031ef60c45a285eeba7bce9ee9ed66dad3a01e29ab8d
Status: Downloaded newer image for docker.io/node:7
---> d9aed20b68a4
Step 2/7 : WORKDIR /app
---> aa0e530456b1
Removing intermediate container 5b17162f50b7
Step 3/7 : COPY package.json /app
---> d51305e482a2
Removing intermediate container 3c8818ef7f08
Step 4/7 : RUN npm install
---> Running in ca7c522f25a3
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info linkStuff [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~prepublish: [email protected]
npm info lifecycle [email protected]~prepare: [email protected]
npm info ok
---> cf8f97db5f1f
Removing intermediate container ca7c522f25a3
Step 5/7 : COPY . /app
---> 65ec5a31946b
Removing intermediate container 5a2ba70f64f9
Step 6/7 : CMD node index.js
---> Running in 8c4ab44cf9e9
---> 3850e324092b
Removing intermediate container 8c4ab44cf9e9
Step 7/7 : EXPOSE 80
---> Running in 5c276c6f7d0b
---> 4ae33999e6b2
Removing intermediate container 5c276c6f7d0b
Successfully built 4ae33999e6b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment