Dockerfile 484 B

123456789101112131415
  1. FROM docs/base:latest
  2. MAINTAINER Sven Dowideit <[email protected]> (@SvenDowideit)
  3. # to get the git info for this repo
  4. COPY . /src
  5. # Reset the /docs dir so we can replace the theme meta with the new repo's git info
  6. RUN git reset --hard
  7. RUN grep "__version" /src/compose/__init__.py | sed "s/.*'\(.*\)'/\1/" > /docs/VERSION
  8. COPY docs/* /docs/sources/compose/
  9. COPY docs/mkdocs.yml /docs/mkdocs-compose.yml
  10. # Then build everything together, ready for mkdocs
  11. RUN /docs/build.sh