diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b82035b82..056a384c3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -34,11 +34,10 @@ In order to build the documentation site, you will need: **Docker** -To install this site on Docker, simply execute the following commands. +To build and run this site on Docker, execute the following commands: -* `cd docker` -* `docker build -t intellij-sdk-docs .` -* `docker run -it -p 4000:4000 intellij-sdk-docs /bin/bash -c 'cd intellij-sdk-docs && rake preview'` +* `docker build -t intellij-sdk-docs /intellij-sdk-docs` +* `docker run intellij-sdk-docs` **OS X** diff --git a/docker/Dockerfile b/docker/Dockerfile index ddf4bab65..b09cf8605 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,15 +14,20 @@ RUN \ apt-get install --yes nodejs RUN \ - gem install bundler && \ -# git clone --depth 1 http://github.com/jetbrains/intellij-sdk-docs && \ - git clone --depth 1 http://github.com/breandan/intellij-sdk-docs && \ + gem install bundler + +RUN \ + git clone --depth 1 https://github.com/jetbrains/intellij-sdk-docs.git /intellij-sdk-docs && \ cd intellij-sdk-docs && \ git submodule init && \ git submodule update -RUN \ - cd intellij-sdk-docs && \ - rake bootstrap +RUN cd intellij-sdk-docs && rake bootstrap + +VOLUME /intellij-sdk-docs + +WORKDIR /intellij-sdk-docs EXPOSE 4000 + +CMD rake preview