From c698c124a928688467ce131d6d48e4165cf1da25 Mon Sep 17 00:00:00 2001 From: Soft Armpit Date: Thu, 14 Jun 2018 18:02:59 +0100 Subject: [PATCH] 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 --- .gitignore | 3 +++ Dockerfile-py3 | 12 ++++++++++++ requirements.txt | 5 +++++ 3 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile-py3 create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b662ab6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +models/ +decensor_input/ +decensor_output/ diff --git a/Dockerfile-py3 b/Dockerfile-py3 new file mode 100644 index 0000000..474bdf3 --- /dev/null +++ b/Dockerfile-py3 @@ -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"] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..cd1b7ad --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +Pillow +tqdm +scipy +pyamg +matplotlib