2015-04-01 20:28:34 +02:00
|
|
|
FROM docs/base:latest
|
|
|
|
MAINTAINER Mary <mary@docker.com> (@moxiegirl)
|
|
|
|
|
|
|
|
# to get the git info for this repo
|
|
|
|
COPY . /src
|
|
|
|
|
|
|
|
# Reset the /docs dir so we can replace the theme meta with the new repo's git info
|
|
|
|
RUN git reset --hard
|
|
|
|
|
|
|
|
#
|
2015-04-02 17:11:19 +02:00
|
|
|
# RUN git describe --match 'v[0-9]*' --dirty='.m' --always > /docs/VERSION
|
|
|
|
# The above line causes a floating point error in our tools
|
|
|
|
#
|
|
|
|
RUN grep "VERSION =" /src/version/version.go | sed 's/.*"\(.*\)".*/\1/' > /docs/VERSION
|
2015-04-01 20:28:34 +02:00
|
|
|
COPY docs/* /docs/sources/distribution/
|
2015-04-02 17:11:19 +02:00
|
|
|
COPY docs/images/* /docs/sources/distribution/images/
|
|
|
|
COPY docs/spec/* /docs/sources/distribution/spec/
|
|
|
|
COPY docs/spec/auth/* /docs/sources/distribution/spec/auth/
|
|
|
|
COPY docs/storage-drivers/* /docs/sources/distribution/storage-drivers/
|
2015-04-01 20:28:34 +02:00
|
|
|
COPY docs/mkdocs.yml /docs/mkdocs-distribution.yml
|
|
|
|
|
2015-04-02 17:11:19 +02:00
|
|
|
|
2015-04-01 20:28:34 +02:00
|
|
|
# Then build everything together, ready for mkdocs
|
|
|
|
RUN /docs/build.sh
|