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 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
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user