Skip to content

Instantly share code, notes, and snippets.

@JustinSDK
Last active September 5, 2015 07:37
Show Gist options
  • Save JustinSDK/a29370b9ec85501cc763 to your computer and use it in GitHub Desktop.
Save JustinSDK/a29370b9ec85501cc763 to your computer and use it in GitHub Desktop.
Dockerfile for caterpillar/rpi-gradle
FROM resin/rpi-raspbian
MAINTAINER Justin Lin <caterpillar@openhome.cc>
# 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