From defb399657294b1ec66c4b15db3602ced543c41b Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 18 May 2017 21:34:45 +0200 Subject: [PATCH] Fix and improve Dockerfile * Add comment. * Add missing packages cmake, curl. * Update bundler (fixes warning). * Only clone the latest release of travis-build (save time and disk space). * Remove empty line at end of file. Signed-off-by: Stefan Weil --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) mode change 100755 => 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile old mode 100755 new mode 100644 index b7645cc9bd..867712ccc5 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,15 @@ +# Dockerfile for local Travis build test + FROM ubuntu MAINTAINER Ian Blenke RUN apt-get update -RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git ruby bundler wget unzip -RUN gem install travis --no-ri --no-rdoc -RUN git clone https://github.com/travis-ci/travis-build ~/.travis/travis-build +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y cmake curl git ruby bundler wget unzip +RUN gem install bundler travis --no-ri --no-rdoc +RUN git clone --depth 1 https://github.com/travis-ci/travis-build ~/.travis/travis-build RUN bundle install --gemfile ~/.travis/travis-build/Gemfile ADD . /tesseract WORKDIR /tesseract RUN travis compile | sed -e "s/--branch\\\=\\\'\\\'/--branch=master/g" | bash -