From cd2de0602f30dda463661e6b56941c390cd76278 Mon Sep 17 00:00:00 2001 From: Nejc Zupan Date: Sun, 7 Jan 2018 20:13:36 +0100 Subject: [PATCH] Removed adjustment of import statements. Adjustment of import statements that was introduced to cope with an old version of requirements is no longer needed because all requirements were already updated. This caused failure while building Dockerfile. --- Dockerfile | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46d535b..42d3b12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,15 +37,6 @@ RUN sudo cp /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled & COPY config/config.py /root/vatic/config.py -# We need to adjust some of these guys's import statements... -RUN sed -i'' "s/import Image/from PIL import Image/" \ - /usr/local/lib/python2.7/dist-packages/pyvision-0.3.1-py2.7-linux-x86_64.egg/vision/frameiterators.py \ - /usr/local/lib/python2.7/dist-packages/pyvision-0.3.1-py2.7-linux-x86_64.egg/vision/ffmpeg.py \ - /usr/local/lib/python2.7/dist-packages/pyvision-0.3.1-py2.7-linux-x86_64.egg/vision/visualize.py \ - /root/vatic/models.py \ - /root/vatic/cli.py \ - /usr/local/lib/python2.7/dist-packages/pyvision-0.3.1-py2.7-linux-x86_64.egg/vision/pascal.py - RUN sudo /etc/init.d/mysql start && \ cd /root/vatic && \ mysql -u root --execute="CREATE DATABASE vatic;" && \