mirror of
https://github.com/anthonyraymond/joal.git
synced 2024-11-10 17:12:36 +08:00
26 lines
715 B
Text
26 lines
715 B
Text
FROM hypriot/rpi-java:jre-1.8.111
|
|
|
|
|
|
WORKDIR /joal/
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y ca-certificates curl wget \
|
|
&& curl -s https://api.github.com/repos/anthonyraymond/joal/releases/latest \
|
|
| grep browser_download_url \
|
|
| grep joal.tar.gz \
|
|
| cut -d '"' -f 4 \
|
|
| wget -i - \
|
|
&& tar --wildcards -zxvf joal.tar.gz '*.jar' \
|
|
&& rm -rf /data/clients \
|
|
&& tar -zxvf joal.tar.gz 'clients/' \
|
|
&& mv *.jar joal.jar \
|
|
&& rm joal.tar.gz \
|
|
&& apt-get remove curl wget \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
EXPOSE 5081 49152-65534
|
|
|
|
VOLUME /data
|
|
|
|
ENTRYPOINT ["java","-jar","/joal/joal.jar"]
|
|
CMD ["--joal-conf=/data"]
|