Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (23 sloc) 876 Bytes
FROM frekele/java:jdk8
MAINTAINER frekele <leandro.freitas@softdevelop.com.br>
ENV GRADLE_VERSION=4.8
ENV GRADLE_HOME=/opt/gradle
ENV GRADLE_FOLDER=/root/.gradle
# Change to tmp folder
WORKDIR /tmp
# Download and extract gradle to opt folder
RUN wget --no-check-certificate --no-cookies https://downloads.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip \
&& unzip gradle-${GRADLE_VERSION}-bin.zip -d /opt \
&& ln -s /opt/gradle-${GRADLE_VERSION} /opt/gradle \
&& rm -f gradle-${GRADLE_VERSION}-bin.zip
# Add executables to path
RUN update-alternatives --install "/usr/bin/gradle" "gradle" "/opt/gradle/bin/gradle" 1 && \
update-alternatives --set "gradle" "/opt/gradle/bin/gradle"
# Create .gradle folder
RUN mkdir -p $GRADLE_FOLDER
# Mark as volume
VOLUME $GRADLE_FOLDER
# Add the files
ADD rootfs /
# Change to root folder
WORKDIR /root
You can’t perform that action at this time.