Merge pull request #932 from stweil/dockerfile

Fix and improve Dockerfile
This commit is contained in:
zdenop 2017-05-19 09:21:22 +02:00 committed by GitHub
commit f5814974b0

9
Dockerfile Executable file → Normal file
View File

@ -1,14 +1,15 @@
# Dockerfile for local Travis build test
FROM ubuntu
MAINTAINER Ian Blenke <ian@blenke.com>
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