Updated building process of dockerimage
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
francesco 2021-06-20 22:55:14 +02:00
parent f04cde43ff
commit 0619746c55
2 changed files with 11 additions and 4 deletions

View File

@ -1,7 +1,13 @@
FROM squidfunk/mkdocs-material
FROM squidfunk/mkdocs-material as build
COPY docs/ /docs/docs
COPY mkdocs.yml .
COPY mkdocs.yml /docs
RUN pip install --no-cache-dir
RUN mkdocs gh-deploy --force
WORKDIR /docs
RUN mkdocs build
#Copy static files to Nginx
FROM nginx:alpine
COPY --from=build /docs/site /usr/share/nginx/html
WORKDIR /usr/share/nginx/html

View File

@ -3,6 +3,7 @@ theme:
name: 'material'
repo_url: https://git.r4o.ch/francesco/mkdocs/
docs_dir: 'docs'
site_url: https://docs.r4o.ch
# Page tree
nav: