Skip to content

Commit 8cf7d9c

Browse files
j2kundawidvdh
andcommitted
create a Dockerfile
Co-authored-by: Dawid van der Hoven <dawidvdh@users.noreply.github.com>
1 parent 7a050f0 commit 8cf7d9c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM python:3.7-slim-buster
2+
3+
RUN apt-get update \
4+
&& apt-get install -y build-essential build-essential python3.7-dev python-igraph
5+
6+
COPY . /pimbook
7+
WORKDIR "/pimbook"
8+
9+
RUN pip3 install -r requirements.txt
10+
11+
ENTRYPOINT ["python3", "-i"]

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,12 @@ pytest
2323
# with code coverage
2424
pytest --cov-report html:cov_html --cov-report annotate:cov_annotate --cov
2525
```
26+
27+
## Docker
28+
29+
To build and run the code in the repository with docker, run
30+
31+
```
32+
docker build -t pimbook -f Dockerfile .
33+
docker run -it --name pimbook pimbook:latest
34+
```

0 commit comments

Comments
 (0)