Skip to content

Instantly share code, notes, and snippets.

@dongwq
Forked from melix/Dockerfile
Last active August 29, 2015 14:10
Show Gist options
  • Save dongwq/5b9e40b998d6edea8f50 to your computer and use it in GitHub Desktop.
Save dongwq/5b9e40b998d6edea8f50 to your computer and use it in GitHub Desktop.
################################################
# Dockerfile to run Groovy containers
# Based on Java 8 image
################################################
FROM java:8u40-jdk
MAINTAINER Cédric Champeau
# Install GVM
RUN curl -s get.gvmtool.net | bash
RUN ["/bin/bash", "-c", "source /root/.gvm/bin/gvm-init.sh"]
RUN echo "gvm_suggestive_selfupdate=false" >> /root/.gvm/etc/config
RUN ["/bin/bash", "-c", "-l", "gvm install groovy"]
# Fix path
ENV GROOVY_HOME /root/.gvm/groovy/current
ENV PATH $GROOVY_HOME/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment