From 08ba0f033206fdb15ca58c99f171bea558d615b7 Mon Sep 17 00:00:00 2001 From: Chris Cowley Date: Thu, 3 Oct 2024 16:07:44 +0200 Subject: [PATCH] Create multistage Dockerfile --- Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7147a0a..01a0e75 100644 --- a/Dockerfile +++ b/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/