Skip to content

Commit 042a134

Browse files
committed
Add Dockerfile
1 parent 5de8c37 commit 042a134

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
FROM ruby:2.2.2
3+
MAINTAINER Conor Heine <[email protected]>
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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ The `thor docs:download` command is used to download/update individual documenta
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.

0 commit comments

Comments
 (0)