History

Add Dockerfile

Conor Heine committed 10 years ago

Commit 042a1341 parent 5de8c372 files · +28 −0Browse files

Unified · Split

2 files
  1. Dockerfile +17 −0
  2. README.md +11 −0
Dockerfile+17−0
@@ -0,0 +1,17 @@
1+
2+FROM ruby:2.2.2
3+MAINTAINER Conor Heine <conor.heine@gmail.com>
4+
5+RUN apt-get update
6+RUN apt-get -y install git nodejs
7+RUN git clone https://github.com/Thibaut/devdocs.git /devdocs
8+RUN gem install bundler
9+
10+WORKDIR /devdocs
11+
12+RUN bundle install --system
13+RUN thor docs:download --all
14+
15+EXPOSE 9292
16+CMD rackup -o 0.0.0.0
17+
README.md+11−0
@@ -37,6 +37,17 @@ The `thor docs:download` command is used to download/update individual documenta · 36 unmodified lines
3737
3838 **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).
3939
40+Alternatively, DevDocs may be started as a Docker container:
41+
42+```
43+# First, build the image
44+git clone https://github.com/Thibaut/devdocs.git && cd devdocs
45+docker build -t thibaut/devdocs .
46+
47+# Finally, start a DevDocs container (access http://localhost:9292)
48+docker run --name devdocs -d -p 9292:9292 thibaut/devdocs
49+```
50+
4051 ## Vision
4152
4253 DevDocs aims to make reading and searching reference documentation fast, easy and enjoyable.