Create multistage Dockerfile
This commit is contained in:
parent
0b229a48c9
commit
08ba0f0332
1 changed files with 11 additions and 2 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,3 +1,12 @@
|
||||||
FROM docker.io/squidfunk/mkdocs-material
|
FROM docker.io/squidfunk/mkdocs-material AS build
|
||||||
|
|
||||||
RUN pip install mkdocs-glightbox
|
#RUN pip install mkdocs-glightbox
|
||||||
|
|
||||||
|
COPY . /docs/
|
||||||
|
|
||||||
|
RUN mkdocs build
|
||||||
|
|
||||||
|
|
||||||
|
FROM nginx:latest
|
||||||
|
|
||||||
|
COPY --from=build /docs/site/ /usr/share/nginx/html/
|
||||||
|
|
Loading…
Add table
Reference in a new issue