diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..edd83c0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +node_modules +npm-debug.log +Dockerfile +.dockerignore \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ee10fc8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node:latest + +WORKDIR /usr/src/app + +# Install app dependencies +COPY package*.json ./ + +RUN npm install + +# Bundle source code inside container +COPY . . + +# PORT +EXPOSE 8080 + +CMD ["npm", "start"] \ No newline at end of file