Skip to content

Instantly share code, notes, and snippets.

@laughingman7743
Created April 5, 2016 12:05
Show Gist options
  • Save laughingman7743/a6597a709c19b2e036c903c5dfb24e9b to your computer and use it in GitHub Desktop.
Save laughingman7743/a6597a709c19b2e036c903c5dfb24e9b to your computer and use it in GitHub Desktop.
FROM anapsix/alpine-java:jre8
ENV JRUBY_VERSION=9.0.5.0 \
PATH=/opt/jruby/bin:$PATH
RUN apk upgrade --update \
&& apk add --update curl \
&& curl -L -o /tmp/jruby.tar.gz https://s3.amazonaws.com/jruby.org/downloads/${JRUBY_VERSION}/jruby-bin-${JRUBY_VERSION}.tar.gz \
&& tar -C /opt -zxf /tmp/jruby.tar.gz \
&& ln -s /opt/jruby-${JRUBY_VERSION} /opt/jruby \
&& apk del curl \
&& rm -rf /tmp/* \
/opt/jruby/samples \
&& gem install norikra --no-ri --no-rdoc
EXPOSE 26571 26578
ENTRYPOINT ["norikra", "start"]
CMD []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment