-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
24 lines (20 loc) · 991 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM timelinelabs/java:1.7.0_67
MAINTAINER Albert Dixon <[email protected]>
ENV JRUBY_VERSION jruby-1.7.15
ENV JRUBY_HOME /usr/local/jruby
ENV PATH $JRUBY_HOME/bin:$PATH
ENV DEBIAN_FRONTEND noninteractive
ENV RUBY_CONFIGURE_OPTS --disable-install-doc
ENV TMPDIR /tmp
WORKDIR /tmp
RUN apt-get update -qq &&\
apt-get install -q -y --no-install-recommends git curl ca-certificates build-essential libssl-dev &&\
git clone https://github.com/sstephenson/ruby-build.git &&\
PREFIX=/tmp/rubybuild ./ruby-build/install.sh &&\
PATH=/tmp/rubybuild/bin:$PATH ruby-build $JRUBY_VERSION /usr/local/jruby &&\
gem install bundler --no-rdoc --no-ri &&\
echo 'gem: --no-document' > /etc/gemrc && echo 'gem: --no-document' > /.gemrc &&\
apt-get autoremove -y && apt-get autoclean -y &&\
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /opt/rubybuild
ADD test/ /tmp/test
RUN ruby /tmp/test/tc_word_count.rb && rm -rf test