-
-
Save dandynaufaldi/b70170580cc95f53f3056b3e30e4e5d6 to your computer and use it in GitHub Desktop.
Jruby 9.2 JDK 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
ENV LANG en_US.UTF-8 | |
ENV TMPDIR /tmp | |
ENV TEMP /tmp | |
RUN apt-get update \ | |
&& apt-get install -y software-properties-common \ | |
locales \ | |
&& locale-gen $LANG \ | |
&& apt-get install -y build-essential \ | |
libc6-dev \ | |
git \ | |
curl \ | |
unzip \ | |
wget \ | |
--no-install-recommends \ | |
&& rm -rf /var/lib/apt/lists/* | |
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 | |
ENV PATH="${JAVA_HOME}/bin:${PATH}" | |
RUN add-apt-repository -y ppa:openjdk-r | |
RUN apt-get update --fix-missing && \ | |
apt-get install -y openjdk-8-jre-headless openjdk-8-jdk-headless curl maven gradle libffi-dev | |
ENV JRUBY_VERSION 9.2.0.0 | |
ENV JRUBY_SHA256 42718dea5fc90b7696cb3fccf8e8d546729173963ad0bc477d66545677d00684 | |
RUN mkdir -p /opt/jruby \ | |
&& curl -fSL https://s3.amazonaws.com/jruby.org/downloads/${JRUBY_VERSION}/jruby-bin-${JRUBY_VERSION}.tar.gz -o /tmp/jruby.tar.gz \ | |
&& echo "$JRUBY_SHA256 */tmp/jruby.tar.gz" | sha256sum -c - \ | |
&& tar -zx --strip-components=1 -f /tmp/jruby.tar.gz -C /opt/jruby \ | |
&& rm /tmp/jruby.tar.gz \ | |
&& ln -s /opt/jruby/bin/jruby /usr/local/bin/ruby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment