github.com/lusis/distribution@v2.0.1+incompatible/docs/Dockerfile (about)

     1  FROM docs/base:latest
     2  MAINTAINER Mary <mary@docker.com> (@moxiegirl)
     3  
     4  # to get the git info for this repo
     5  COPY . /src
     6  
     7  # Reset the /docs dir so we can replace the theme meta with the new repo's git info
     8  RUN git reset --hard
     9  
    10  RUN grep "VERSION =" /src/version/version.go  | sed 's/.*"\(.*\)".*/\1/' > /docs/VERSION
    11  
    12  
    13  #
    14  # RUN git describe --match 'v[0-9]*' --dirty='.m' --always > /docs/VERSION
    15  # The above line causes a floating point error in our tools
    16  #
    17  COPY docs/* /docs/sources/registry/
    18  COPY docs/images/* /docs/sources/registry/images/
    19  COPY docs/spec/* /docs/sources/registry/spec/
    20  COPY docs/spec/auth/* /docs/sources/registry/spec/auth/
    21  COPY docs/storage-drivers/* /docs/sources/registry/storage-drivers/
    22  COPY docs/mkdocs.yml /docs/mkdocs-distribution.yml
    23  
    24  RUN sed -i.old '1s;^;no_version_dropdown: true;' \
    25    /docs/sources/registry/*.md \
    26    /docs/sources/registry/spec/*.md \
    27    /docs/sources/registry/spec/auth/*.md \
    28    /docs/sources/registry/storage-drivers/*.md 
    29  
    30  RUN sed -i.old  -e '/^<!--GITHUB/g' -e '/^IGNORES-->/g'\
    31    /docs/sources/registry/*.md \
    32    /docs/sources/registry/spec/*.md \
    33    /docs/sources/registry/spec/auth/*.md \
    34    /docs/sources/registry/storage-drivers/*.md 
    35  
    36  # Then build everything together, ready for mkdocs
    37  RUN /docs/build.sh