diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..2a36d5a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +node_modules +dist +src/.vuepress/dist +.git +*.log diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0f2db81 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:20-alpine AS build + +WORKDIR /app + +COPY package.json package-lock.json ./ +RUN npm ci + +COPY . . +RUN npm run docs:build + +FROM nginx:1.25-alpine + +COPY --from=build /app/src/.vuepress/dist /usr/share/nginx/html