Skip to content

Commit b8313e0

Browse files
committed
Add Docker files
1 parent 03f1ec0 commit b8313e0

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:3
2+
3+
RUN mkdir /code
4+
ADD requirements.txt /code/
5+
WORKDIR /code
6+
RUN pip install -r requirements.txt
7+
ADD . /code/
8+
9+
CMD python generator.py

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ user manual.
44

55
Thanks to [tldr.jsx][4] for your great CSS!
66

7+
### Build
8+
9+
If you have python 3 and the [required packages](requirements.txt):
10+
11+
python generator.py
12+
13+
Or use Docker to create an environment and build:
14+
15+
docker-compose up
16+
17+
718
[1]: http://kapeli.com/dash
819
[2]: http://zealdocs.org/
920
[3]: https://github.com/tldr-pages/tldr

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: '2'
2+
3+
services:
4+
builder:
5+
build: .
6+
volumes:
7+
- .:/code

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
requests
2+
markdown2

0 commit comments

Comments
 (0)