Dockerfile 702 B

1234567891011121314151617181920212223
  1. FROM grafana/docs-base:latest
  2. # TODO: need the full repo source to get the git version info
  3. COPY . /src
  4. # Reset the /docs dir so we can replace the theme meta with the new repo's git info
  5. RUN git reset --hard
  6. # Then copy the desired docs into the /docs/sources/ dir
  7. COPY ./sources/ /docs/sources
  8. COPY ./VERSION /docs/VERSION
  9. # adding the image spec will require Docker 1.5 and `docker build -f docs/Dockerfile .`
  10. #COPY ./image/spec/v1.md /docs/sources/reference/image-spec-v1.md
  11. # TODO: don't do this - look at merging the yml file in build.sh
  12. COPY ./mkdocs.yml /docs/mkdocs.yml
  13. COPY ./s3_website.json /docs/s3_website.json
  14. # Then build everything together, ready for mkdocs
  15. RUN /docs/build.sh