# find public images on hub.docker.com
FROM node:8.11.3
# run commands like you would in linux terminal
RUN mkdir -p /usr/src/app
# sets a default working directory for later commands
WORKDIR /usr/src/app
# copies all files from the directory where Dockerfile was located
# to directory inside the docker container
COPY . /usr/src/app
# the port that the container will open to the outside
EXPOSE 4200
# run any other commands if you require it... this is for angular
RUN npm rebuild node-sass
# command to start your container, could be ["node", "server.js"] etc...
CMD ["npm", "start"]