From 042a134972d7a08c4b37dc9d7d4eaa26a061a930 Mon Sep 17 00:00:00 2001 From: Conor Heine Date: Tue, 1 Dec 2015 12:46:16 -0800 Subject: [PATCH] Add Dockerfile --- Dockerfile | 17 +++++++++++++++++ README.md | 11 +++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..7ad4d562 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ + +FROM ruby:2.2.2 +MAINTAINER Conor Heine + +RUN apt-get update +RUN apt-get -y install git nodejs +RUN git clone https://github.com/Thibaut/devdocs.git /devdocs +RUN gem install bundler + +WORKDIR /devdocs + +RUN bundle install --system +RUN thor docs:download --all + +EXPOSE 9292 +CMD rackup -o 0.0.0.0 + diff --git a/README.md b/README.md index 6e1945ac..8d191434 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,17 @@ The `thor docs:download` command is used to download/update individual documenta **Note:** there is currently no update mechanism other than `git pull origin master` to update the code and `thor docs:download` to download the latest version of the docs. To stay informed about new releases, be sure to [watch](https://github.com/Thibaut/devdocs/subscription) this repository and/or subscribe to the [newsletter](http://eepurl.com/HnLUz). +Alternatively, DevDocs may be started as a Docker container: + +``` +# First, build the image +git clone https://github.com/Thibaut/devdocs.git && cd devdocs +docker build -t thibaut/devdocs . + +# Finally, start a DevDocs container (access http://localhost:9292) +docker run --name devdocs -d -p 9292:9292 thibaut/devdocs +``` + ## Vision DevDocs aims to make reading and searching reference documentation fast, easy and enjoyable.