diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..29162a464c302701efc592d166641719463ad83e --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,21 @@ +# From base image node +FROM node:16 + +# Create app directory +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +# Copying all the files from your file system to container file system +COPY package.json . + +# Install all dependencies +RUN npm install + +# Copy other files too +COPY ./ . + +# Expose the port +EXPOSE 3030 + +# Command to run app when intantiate an image +CMD ["npm","start"]