Dockerfile 744 B

12345678910111213141516171819202122232425
  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. COPY ./changed-files /docs/changed-files
  10. # adding the image spec will require Docker 1.5 and `docker build -f docs/Dockerfile .`
  11. #COPY ./image/spec/v1.md /docs/sources/reference/image-spec-v1.md
  12. # TODO: don't do this - look at merging the yml file in build.sh
  13. COPY ./mkdocs.yml /docs/mkdocs.yml
  14. COPY ./s3_website.json /docs/s3_website.json
  15. # Then build everything together, ready for mkdocs
  16. RUN /docs/build.sh