Skip to content

Commit

Permalink
Add dockerfile for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch1024 authored May 31, 2024
1 parent 90565e9 commit b7c09e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:alpine AS builder
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
RUN yarn run build

FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /app/.vuepress/dist /usr/share/nginx/html/docs
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit b7c09e2

Please sign in to comment.