Skip to content

Commit 46c4ace

Browse files
authored
feat(docs): add Dockerfile for building and serving documentation
1 parent a5afc02 commit 46c4ace

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Dockerfile.docs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM peaceiris/mdbook:latest AS builder
2+
3+
WORKDIR /app
4+
COPY docs/ ./docs/
5+
RUN mdbook build docs
6+
7+
FROM nginx:alpine AS runtime
8+
9+
COPY --from=builder /app/docs/book/ /usr/share/nginx/html/
10+
11+
EXPOSE 80

0 commit comments

Comments
 (0)