diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8d2f2c8 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.git +.github +.vscode +node_modules +dist diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d0ea628 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:18-alpine as BUILD + +WORKDIR /build +COPY package.json package-lock.json ./ +RUN npm ci +COPY ./ ./ +RUN npm run build + +FROM nginx +COPY --from=BUILD /build/dist /usr/share/nginx/html