blog/Dockerfile

13 lines
252 B
Docker
Raw Permalink Normal View History

2023-04-26 00:07:21 +00:00
# Build Image
FROM squidfunk/mkdocs-material:latest as build
# Build MkDocs
COPY . /app
WORKDIR /app
RUN pip install -U -r ./requirements.txt
RUN mkdocs build
# Main Image - Copy Resources
FROM nginx
COPY --from=build /app/site /usr/share/nginx/html