mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
bb832d491e
Change double hyphen "--" to single hyphen "-" to prevent build errors: Fix invalid option no-ri-no-rdoc > ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --no-ri
18 lines
582 B
Docker
18 lines
582 B
Docker
# Dockerfile for local Travis build test
|
|
|
|
FROM ubuntu
|
|
LABEL maintainer="Ian Blenke <ian@blenke.com>"
|
|
|
|
RUN apt-get update
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y cmake curl git ruby bundler wget unzip \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
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
|