1
0
mirror of https://github.com/lensapp/lens.git synced 2024-11-10 10:36:25 +03:00
lens/mkdocs/Dockerfile
Mario Sarcher 3bc45218c1
Documentation (MKDOCS) (#1230)
Co-authored-by: Steve Richards <srichards@mirantis.com>
Co-authored-by: Mario Sarcher <msarcher@mirantis.com>
Co-authored-by: steve richards <steve.james.richards@gmail.com>
Co-authored-by: Paul Williams <pawilliams@mirantis.com>
Co-authored-by: pauljwil <pauljwil@gmail.com>
2020-11-05 16:38:56 +02:00

36 lines
763 B
Docker

ARG PYTHON_VERSION=3.8.1-alpine3.11
FROM python:${PYTHON_VERSION} as builder
ENV PYTHONUNBUFFERED 1
# Set build directory
WORKDIR /wheels
# Copy files necessary
COPY ./requirements.txt .
# Perform build and cleanup artifacts
RUN \
apk add --no-cache \
git \
git-fast-import \
&& apk add --no-cache --virtual .build gcc musl-dev \
&& python -m pip install --upgrade pip \
&& pip install -r requirements.txt \
&& apk del .build gcc musl-dev \
&& rm -rf /usr/local/lib/python3.8/site-packages/mkdocs/themes/*/* \
&& rm -rf /tmp/*
# Set final MkDocs working directory
WORKDIR /docs
# Expose MkDocs development server port
EXPOSE 8000
# Start development server by default
ENTRYPOINT ["mkdocs"]
CMD ["serve", "--dev-addr=0.0.0.0:8000"]