FROM python:3.6.8-alpine3.9 as builder # Set build directory WORKDIR /app # add the current directory to the container as /app ADD . /app # Perform build and cleanup artifacts RUN apk add --no-cache --virtual .build gcc musl-dev && pip install mkdocs && pip install mkdocs-material && pip install plantuml-markdown && apk del .build gcc musl-dev # build the documentation site RUN mkdocs build # Expose MkDocs development server port FROM nginx COPY --from=builder /app/site /usr/share/nginx/html RUN ls -l /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]