diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..191381e --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.git \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5fc4df5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:15.14.0-alpine + +# Create app directory +WORKDIR /app + +COPY package*.json ./ + +RUN npm install + +ADD . /app/ + +COPY . . + +RUN npm run build + +EXPOSE 3000 + +CMD ["npm","run","start"] \ No newline at end of file