2017-02-18 08:27:17 +08:00
|
|
|
FROM hypriot/rpi-java:1.8.0
|
|
|
|
|
|
|
|
WORKDIR /jack-of-all-trades/
|
|
|
|
|
2017-03-14 09:40:42 +08:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y ca-certificates curl \
|
|
|
|
&& GITHUB_REPO="https://github.com/anthonyraymond/joal" \
|
|
|
|
&& LATEST=$(curl -sSI $GITHUB_REPO"/releases/latest" | perl -n -e '/^Location: .*?tag\/(.*?)\r*$/ && print "$1\n"') \
|
|
|
|
&& curl -f -L $GITHUB_REPO"/releases/download/"$LATEST"/"$LATEST".jar" > /jack-of-all-trades/jack-of-all-trades.jar \
|
|
|
|
&& apt-get remove --purge --auto-remove curl \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2017-02-18 08:27:17 +08:00
|
|
|
|
|
|
|
WORKDIR /jack-of-all-trades
|
|
|
|
|
|
|
|
EXPOSE 49152-65534
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
CMD ["java","-jar","/jack-of-all-trades/jack-of-all-trades.jar","/data"]
|