diff --git a/.dockerignore b/.dockerignore new file mode 120000 index 0000000..3e4e48b --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.gitignore \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ee5b583 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM tensorflow/tensorflow:1.15.0-gpu-py3 +ARG INSTALLDIR="/app/virtual_sketching" + +RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC && \ + apt-get update && \ + apt-get install -y --no-install-recommends \ + libsm6 libxext6 libxrender-dev libcairo2 python3-dev libffi-dev time \ + && \ + rm -rf /var/lib/apt/lists/* + +COPY . $INSTALLDIR + +WORKDIR $INSTALLDIR + +RUN pip install -U pip wheel \ + && pip install -r requirements.txt \ + && pip cache purge + +STOPSIGNAL SIGINT +ENTRYPOINT test_vectorization.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..58c5788 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +opencv-python==3.4.2.17 +pillow==6.2.0 +scipy==1.5.2 +gizeh==0.1.11 +matplotlib>=3.0.0,<4.0