x86_64-jruby-tabula/Dockerfile
Jonathan Ervine aa415c26aa new file: Dockerfile
new file:   Jenkinsfile
Initial commit
2020-06-16 21:45:27 +08:00

28 lines
700 B
Docker

FROM jruby:9.1-jdk
RUN apt-get update -qq && apt-get install -y build-essential
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc
ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH
RUN gem install bundler -v '< 2' \
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin"
# don't create ".bundle" in all our apps
ENV BUNDLE_APP_CONFIG $GEM_HOME
WORKDIR /app
# these didn't work as ONBUILD, strangely. Idk why. -JBM
COPY Gemfile ./
COPY Gemfile.lock ./
COPY Jarfile ./
COPY Jarfile.lock ./
RUN bundle install --system
RUN jruby -S jbundle install
COPY . .
EXPOSE 9292
CMD ["jruby", "-G", "-r", "jbundler", "-S", "rackup", "-o", "0.0.0.0", "config.ru"]