FROM python:3.8-alpine WORKDIR /tmp COPY requirements.txt requirements.txt RUN apk add --no-cache \ git curl \ && apk add --no-cache --virtual .build gcc musl-dev \ && pip install --user -r requirements.txt \ && apk del .build gcc musl-dev \ && rm -rf /tmp/* ENV PATH=$PATH:/root/.local/bin WORKDIR /docs EXPOSE 8000 ENTRYPOINT ["mkdocs"] CMD ["serve", "--dev-addr=0.0.0.0:8000"]