stash
This commit is contained in:
parent
0f51f6e33f
commit
419893d93d
11 changed files with 925 additions and 72 deletions
17
deploy/prod/Dockerfile.wiki
Normal file
17
deploy/prod/Dockerfile.wiki
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Build-only image for the project wiki (mkdocs).
|
||||
# It is never run as a service: ansible builds this image once, runs it
|
||||
# with the host output directory bind-mounted at /output, the container
|
||||
# copies the built static site into it, and exits. Nginx on the host
|
||||
# then serves that directory directly, the same way it does the frontend.
|
||||
|
||||
FROM python:3.11-slim AS build
|
||||
WORKDIR /wiki
|
||||
RUN pip install --no-cache-dir mkdocs
|
||||
COPY mkdocs.yml ./
|
||||
COPY docs/ ./docs/
|
||||
RUN mkdocs build
|
||||
|
||||
FROM alpine AS export
|
||||
COPY --from=build /wiki/site /site
|
||||
VOLUME /output
|
||||
CMD ["sh", "-c", "rm -rf /output/* && cp -a /site/. /output/"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue