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
2FROM ruby:2.2.2
3MAINTAINER Conor Heine <conor.heine@gmail.com>
4
5RUN apt-get update
6RUN apt-get -y install git nodejs
7RUN git clone https://github.com/Thibaut/devdocs.git /devdocs
8RUN gem install bundler
9
10WORKDIR /devdocs
11
12RUN bundle install --system
13RUN thor docs:download --all
14
15EXPOSE 9292
16CMD 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
37 37
38**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).38**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).
39 39
40Alternatively, DevDocs may be started as a Docker container:
41
42```
43# First, build the image
44git clone https://github.com/Thibaut/devdocs.git && cd devdocs
45docker build -t thibaut/devdocs .
46
47# Finally, start a DevDocs container (access http://localhost:9292)
48docker run --name devdocs -d -p 9292:9292 thibaut/devdocs
49```
50
40## Vision51## Vision
41 52
42DevDocs aims to make reading and searching reference documentation fast, easy and enjoyable.53DevDocs aims to make reading and searching reference documentation fast, easy and enjoyable.