diff --git a/frontend/.dockerignore b/frontend/.dockerignore new file mode 100644 index 0000000..b7dab5e --- /dev/null +++ b/frontend/.dockerignore @@ -0,0 +1,2 @@ +node_modules +build \ No newline at end of file diff --git a/frontend/Dockerfile b/frontend/Dockerfile new file mode 100644 index 0000000..016a45d --- /dev/null +++ b/frontend/Dockerfile @@ -0,0 +1,11 @@ +FROM node:16-alpine3.11 as builder + +WORKDIR /app + +COPY ./ /app + +RUN npm install + +RUN npm run-script build + +RUN npm install -g serve