Newer
Older
FORESTIER Fabien
committed
FROM python:3.6.8-alpine3.9 as builder
COPY requirements.txt .
RUN pip install -r requirements.txt
# add the current directory to the container as /app
FORESTIER Fabien
committed
ADD . /app
# RUN pip install mkdocs && pip install mkdocs-material && pip install plantuml-markdown
FORESTIER Fabien
committed
# build the documentation site
RUN mkdocs build
FORESTIER Fabien
committed
FROM nginx
FORESTIER Fabien
committed
COPY --from=builder /app/site /usr/share/nginx/html
RUN ls -l /usr/share/nginx/html
EXPOSE 80
FORESTIER Fabien
committed
CMD ["nginx", "-g", "daemon off;"]