Skip to content

Commit 1c26416

Browse files
committed
Added Docker Compose configuration.
1 parent 1c0cda5 commit 1c26416

File tree

4 files changed

+20
-23
lines changed

4 files changed

+20
-23
lines changed

.dockerignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
services:
2+
app:
3+
image: python:3-slim
4+
command: mkdocs serve -a 0.0.0.0:8000
5+
entrypoint: /app/docker-entrypoint.sh
6+
working_dir: /app
7+
ports:
8+
- 8000:8000
9+
volumes:
10+
- .:/app
11+
- python-packages:/usr/local/lib/python3.x/site-packages/
12+
13+
volumes:
14+
python-packages:

docker-entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
4+
pip install -r requirements.txt
5+
6+
exec "$@"

0 commit comments

Comments
 (0)