Last active
September 5, 2015 07:37
-
-
Save JustinSDK/a29370b9ec85501cc763 to your computer and use it in GitHub Desktop.
Dockerfile for caterpillar/rpi-gradle
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 resin/rpi-raspbian | |
MAINTAINER Justin Lin <[email protected]> | |
# Basic tools | |
RUN apt-get -qq update && \ | |
apt-get -qqy install wget && \ | |
apt-get -qqy install vim && \ | |
apt-get -qqy install unzip && \ | |
apt-get -qqy install git | |
# Java 8 | |
WORKDIR /opt | |
RUN wget http://your-url/jdk-8u60-linux-arm32-vfp-hflt.gz && \ | |
tar zxvf jdk-8u60-linux-arm32-vfp-hflt.gz && \ | |
rm jdk-8u60-linux-arm32-vfp-hflt.gz | |
ENV JAVA_HOME /opt/jdk1.8.0_60 | |
# Gradle | |
RUN wget https://downloads.gradle.org/distributions/gradle-2.6-bin.zip && \ | |
unzip gradle-2.6-bin.zip && \ | |
rm gradle-2.6-bin.zip | |
ENV GRADLE_HOME /opt/gradle-2.6 | |
# PATH | |
ENV PATH $PATH:$JAVA_HOME/bin:$GRADLE_HOME/bin | |
WORKDIR / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment