Docker Installation and commands

Docker installation

Remove Docker Initially

Install

Dockerfile:
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
# If you are building your code for production
# RUN npm ci — only=production

# Bundle app source
COPY . .

EXPOSE 8080
CMD [ “node”, “index.js” ]

Docker Commands

https://www.youtube.com/watch?v=KERordttCPM&list=PLw-IdJ8Ov3wKNk0MSwQY9Wt4mrx4MyBaE&index=1

###https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
###https://ropenscilabs.github.io/r-docker-tutorial/04-Dockerhub.html

--

--

DevOps/Cloud | 2x AWS Certified | Terraform | Gitlab

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store