diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..331d3872 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..9e41c391 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM docker.io/library/node:18.14.1-alpine@sha256:045b1a1c90bdfd8fcaad0769922aa16c401e31867d8bf5833365b0874884bbae as builder +RUN apk add --no-cache python3 py3-pip make g++ + +WORKDIR /code +COPY ./ /code/ + +RUN npm install +RUN npm run build + +FROM nginx as webserver +COPY --from=builder /code/dist /usr/share/nginx/html/ares \ No newline at end of file