Commit 5acc8d5b authored by Luke Texon's avatar Luke Texon

Specified ruby and gem versions

parent 82b3039a
Pipeline #113342 passed with stages
in 3 minutes and 30 seconds
FROM ubuntu:latest
RUN apt-get -y update \
&& apt-get -y install maven openjdk-11-jre openjdk-11-jdk pandoc ruby
RUN gem install dpl-heroku
&& apt-get -y install maven openjdk-11-jre openjdk-11-jdk pandoc ruby=1:2.5.1
RUN gem install dpl-heroku -v 1.10.14
COPY src /src
COPY system.properties /system.properties
COPY pom.xml /pom.xml
RUN mvn package
RUN if which ruby >/dev/null && which gem >/dev/null; then \
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"; \
fi
RUN PATH="/var/lib/ruby/2.5.0/bin:$PATH"
CMD ["sh", "target/bin/simplewebapp"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment