"Fossies" - the Fresh Open Source Software Archive

Member "lens-5.2.1/mkdocs/Dockerfile" (16 Sep 2021, 763 Bytes) of package /linux/misc/lens-5.2.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ARG PYTHON_VERSION=3.8.1-alpine3.11
    2 
    3 FROM python:${PYTHON_VERSION} as builder
    4 
    5 ENV PYTHONUNBUFFERED 1
    6 
    7 # Set build directory
    8 WORKDIR /wheels
    9 
   10 # Copy files necessary
   11 COPY ./requirements.txt .
   12 
   13 # Perform build and cleanup artifacts
   14 RUN \
   15   apk add --no-cache \
   16     git \
   17     git-fast-import \
   18   && apk add --no-cache --virtual .build gcc musl-dev \
   19   && python -m pip install --upgrade pip \
   20   && pip install -r requirements.txt \
   21   && apk del .build gcc musl-dev \
   22   && rm -rf /usr/local/lib/python3.8/site-packages/mkdocs/themes/*/* \
   23   && rm -rf /tmp/*
   24 
   25 
   26 
   27 # Set final MkDocs working directory
   28 WORKDIR /docs
   29 
   30 # Expose MkDocs development server port
   31 EXPOSE 8000
   32 
   33 # Start development server by default
   34 ENTRYPOINT ["mkdocs"]
   35 CMD ["serve", "--dev-addr=0.0.0.0:8000"]