Updated building process of dockerimage
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f04cde43ff
commit
0619746c55
14
Dockerfile
14
Dockerfile
@ -1,7 +1,13 @@
|
|||||||
FROM squidfunk/mkdocs-material
|
FROM squidfunk/mkdocs-material as build
|
||||||
|
|
||||||
COPY docs/ /docs/docs
|
COPY docs/ /docs/docs
|
||||||
COPY mkdocs.yml .
|
COPY mkdocs.yml /docs
|
||||||
|
|
||||||
RUN pip install --no-cache-dir
|
WORKDIR /docs
|
||||||
RUN mkdocs gh-deploy --force
|
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
|
@ -3,6 +3,7 @@ theme:
|
|||||||
name: 'material'
|
name: 'material'
|
||||||
repo_url: https://git.r4o.ch/francesco/mkdocs/
|
repo_url: https://git.r4o.ch/francesco/mkdocs/
|
||||||
docs_dir: 'docs'
|
docs_dir: 'docs'
|
||||||
|
site_url: https://docs.r4o.ch
|
||||||
|
|
||||||
# Page tree
|
# Page tree
|
||||||
nav:
|
nav:
|
||||||
|
Loading…
Reference in New Issue
Block a user