diff --git a/docker/Dockerfile b/docker/Dockerfile index 72ec608b3..ea5e6a147 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,18 +1,9 @@ FROM ubuntu:14.04 -RUN apt-get update -y -RUN apt-get install -y build-essential git-core python-pip python-software-properties software-properties-common - -RUN apt-get -y install gcc-4.8 g++-4.8 libboost1.55-all-dev llvm-3.4 -RUN apt-get -y install libbz2-dev libstxxl-dev libstxxl1 libxml2-dev -RUN apt-get -y install libzip-dev lua5.1 liblua5.1-0-dev libtbb-dev libgdal-dev -RUN apt-get -y install curl cmake cmake-curses-gui - -RUN pip install awscli - - -# luabind -RUN curl https://gist.githubusercontent.com/DennisOSRM/f2eb7b948e6fe1ae319e/raw/install-luabind.sh | sudo bash +RUN apt-get update -y && apt-get install -y software-properties-common +RUN add-apt-repository ppa:ubuntu-toolchain-r/test +RUN apt-get update -y && apt-get install -y g++-5 libbz2-dev libstxxl-dev libstxxl1 libxml2-dev libzip-dev lua5.1 liblua5.1-0-dev libtbb-dev libgdal-dev libluabind-dev libboost-all-dev ccache +RUN apt-get -y install curl cmake cmake-curses-gui git WORKDIR /opt RUN git clone --depth 1 --branch v0.31.0 https://github.com/creationix/nvm.git diff --git a/docker/run-gcc.sh b/docker/run-gcc.sh index 2b2527b5a..672d641e2 100755 --- a/docker/run-gcc.sh +++ b/docker/run-gcc.sh @@ -5,7 +5,8 @@ set -o pipefail docker run \ -i \ - -e "CXX=g++" \ + -e "CXX=g++-5" \ + -e "CC=gcc-5" \ -v `pwd`:/home/mapbox/osrm-backend \ -t mapbox/osrm:linux \ /bin/bash -lc "osrm-backend/docker/test.sh"