build: add dockerfile

We add a Python 3 Dockerfile. Example usage:

```bash
docker build -t dmb . && docker run dmb
docker cp $(docker ps -alq):/app/decensor_output/ ./
```

In addition we add `requirements.txt` and `.gitignore` files for
convenience.

Closes: https://github.com/deeppomf/DeepMindBreak/issues/6
Closes: https://github.com/deeppomf/DeepMindBreak/issues/7
This commit is contained in:
Soft Armpit 2018-06-14 18:02:59 +01:00 committed by SoftArmpit
parent c38cc156b0
commit c698c124a9
3 changed files with 20 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
models/
decensor_input/
decensor_output/

12
Dockerfile-py3 Normal file
View File

@ -0,0 +1,12 @@
FROM tensorflow/tensorflow:latest-py3
RUN apt update && apt install -y python3 python3-pip python3-tk python3-numpy && apt clean
WORKDIR /app
COPY . /app
RUN pip --no-cache-dir install --upgrade pip setuptools
RUN pip --no-cache-dir install wheel
RUN pip --no-cache-dir install -r requirements.txt
CMD ["python3", "decensor.py"]

5
requirements.txt Normal file
View File

@ -0,0 +1,5 @@
Pillow
tqdm
scipy
pyamg
matplotlib