Skip to content

Commit defb399

Browse files
Stefan Weilstweil
Stefan Weil
authored andcommitted
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 <stefan@v2201612906741603.powersrv.de>
1 parent 482cd82 commit defb399

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

100755100644
+5-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
# Dockerfile for local Travis build test
2+
13
FROM ubuntu
24
MAINTAINER Ian Blenke <ian@blenke.com>
35

46
RUN apt-get update
5-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git ruby bundler wget unzip
6-
RUN gem install travis --no-ri --no-rdoc
7-
RUN git clone https://github.com/travis-ci/travis-build ~/.travis/travis-build
7+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y cmake curl git ruby bundler wget unzip
8+
RUN gem install bundler travis --no-ri --no-rdoc
9+
RUN git clone --depth 1 https://github.com/travis-ci/travis-build ~/.travis/travis-build
810
RUN bundle install --gemfile ~/.travis/travis-build/Gemfile
911

1012
ADD . /tesseract
1113
WORKDIR /tesseract
1214

1315
RUN travis compile | sed -e "s/--branch\\\=\\\'\\\'/--branch=master/g" | bash
14-

0 commit comments

Comments
 (0)