| 
															
																@@ -3,7 +3,7 @@ FROM ubuntu:18.04 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 ENV GOPATH /root 
															 | 
															
															 | 
															
																 ENV GOPATH /root 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 ENV PROTOBUF_VERSION 3.5.1 
															 | 
															
															 | 
															
																 ENV PROTOBUF_VERSION 3.5.1 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																-COPY . /root/src/gopkg.in/src-d/hercules.v8 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+COPY . /root/src/gopkg.in/src-d/hercules.v9 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 RUN apt-get update && \ 
															 | 
															
															 | 
															
																 RUN apt-get update && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     apt-get install -y --no-install-suggests --no-install-recommends software-properties-common && \ 
															 | 
															
															 | 
															
																     apt-get install -y --no-install-suggests --no-install-recommends software-properties-common && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     add-apt-repository -y ppa:gophers/archive && \ 
															 | 
															
															 | 
															
																     add-apt-repository -y ppa:gophers/archive && \ 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -14,13 +14,13 @@ RUN apt-get update && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     locale-gen en_US.UTF-8 && \ 
															 | 
															
															 | 
															
																     locale-gen en_US.UTF-8 && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     export PATH=/usr/lib/go-1.10/bin:/root/bin:$PATH && \ 
															 | 
															
															 | 
															
																     export PATH=/usr/lib/go-1.10/bin:/root/bin:$PATH && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     go get -v github.com/golang/dep/cmd/dep && \ 
															 | 
															
															 | 
															
																     go get -v github.com/golang/dep/cmd/dep && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-    cd /root/src/gopkg.in/src-d/hercules.v8 && \ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+    cd /root/src/gopkg.in/src-d/hercules.v9 && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     export CGO_CXXFLAGS=-std=c++14 && \ 
															 | 
															
															 | 
															
																     export CGO_CXXFLAGS=-std=c++14 && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$(go env GOOS)-x86_64-1.7.0.tar.gz" | tar -C /usr/local -xz && \ 
															 | 
															
															 | 
															
																     curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$(go env GOOS)-x86_64-1.7.0.tar.gz" | tar -C /usr/local -xz && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     make && \ 
															 | 
															
															 | 
															
																     make && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     rm /usr/local/bin/protoc && rm /usr/local/readme.txt && rm -rf /usr/local/include/google && \ 
															 | 
															
															 | 
															
																     rm /usr/local/bin/protoc && rm /usr/local/readme.txt && rm -rf /usr/local/include/google && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     cp /root/bin/hercules /usr/local/bin && \ 
															 | 
															
															 | 
															
																     cp /root/bin/hercules /usr/local/bin && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-    cp -r /root/src/gopkg.in/src-d/hercules.v8/*.py /root/src/gopkg.in/src-d/hercules.v8/internal /usr/local/bin && \ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+    cp -r /root/src/gopkg.in/src-d/hercules.v9/*.py /root/src/gopkg.in/src-d/hercules.v9/internal /usr/local/bin && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     sed -i 's/parser.add_argument("--backend",/parser.add_argument("--backend", default="Agg",/' /usr/local/bin/labours.py && \ 
															 | 
															
															 | 
															
																     sed -i 's/parser.add_argument("--backend",/parser.add_argument("--backend", default="Agg",/' /usr/local/bin/labours.py && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     echo '#!/bin/bash\n\ 
															 | 
															
															 | 
															
																     echo '#!/bin/bash\n\ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 \n\ 
															 | 
															
															 | 
															
																 \n\ 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -30,7 +30,7 @@ echo\n\' > /browser && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     chmod +x /browser && \ 
															 | 
															
															 | 
															
																     chmod +x /browser && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     curl https://bootstrap.pypa.io/get-pip.py | python3 - pip==18.1 && \ 
															 | 
															
															 | 
															
																     curl https://bootstrap.pypa.io/get-pip.py | python3 - pip==18.1 && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     pip3 install --no-cache-dir --no-build-isolation cython && \ 
															 | 
															
															 | 
															
																     pip3 install --no-cache-dir --no-build-isolation cython && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-    pip3 install --no-cache-dir --no-build-isolation -r /root/src/gopkg.in/src-d/hercules.v8/requirements.txt https://github.com/mind/wheels/releases/download/tf1.7-cpu/tensorflow-1.7.0-cp36-cp36m-linux_x86_64.whl && \ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+    pip3 install --no-cache-dir --no-build-isolation -r /root/src/gopkg.in/src-d/hercules.v9/requirements.txt https://github.com/mind/wheels/releases/download/tf1.7-cpu/tensorflow-1.7.0-cp36-cp36m-linux_x86_64.whl && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     rm -rf /root/* && \ 
															 | 
															
															 | 
															
																     rm -rf /root/* && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     apt-get remove -y software-properties-common golang-1.10-go python3-dev libyaml-dev libxml2-dev curl git make unzip g++ && \ 
															 | 
															
															 | 
															
																     apt-get remove -y software-properties-common golang-1.10-go python3-dev libyaml-dev libxml2-dev curl git make unzip g++ && \ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     apt-get remove -y *-doc *-man && \ 
															 | 
															
															 | 
															
																     apt-get remove -y *-doc *-man && \ 
															 |