Added Docker file

This commit is contained in:
Jeremi Nieminen
2018-09-21 14:02:22 +03:00
parent f1d21390f4
commit d1f7341c85
+16
View File
@@ -0,0 +1,16 @@
# Set base image
FROM node:8
# Set working directory for the app in container
WORKDIR /app
# Copy package.json to container's /app directory and install dependencies
COPY package.json /app
RUN npm install
COPY . /app
# Launch application
CMD node index.js
# Expose container's port 8081 to the outside
EXPOSE 8081