Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Created April 13, 2016 21:20
Show Gist options
  • Save ianblenke/d0c820f0d4eee7b1b373085d213c570a to your computer and use it in GitHub Desktop.
Save ianblenke/d0c820f0d4eee7b1b373085d213c570a to your computer and use it in GitHub Desktop.
Dockerfile for building tesseract from source using .travis.yml
FROM ubuntu
MAINTAINER Ian Blenke <[email protected]>
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 bundle install --gemfile ~/.travis/travis-build/Gemfile
ADD . /tesseract
WORKDIR /tesseract
RUN travis compile | sed -e "s/--branch\\\=\\\'\\\'/--branch=master/g" | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment