Last active
June 2, 2020 01:37
-
-
Save melix/e4b63fd684e63713c162 to your computer and use it in GitHub Desktop.
Dockerfile for Groovy
This file contains hidden or 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
################################################ | |
# 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
A smaller image variant, which uses an explicit version and does not require GVM: