diff --git a/Dockerfile b/Dockerfile index bcc7cd8..8d1ead3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index b5cfe91..ba857dd 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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: