mirror of
https://github.com/anthonyraymond/joal.git
synced 2024-11-10 17:12:36 +08:00
21 lines
616 B
Docker
21 lines
616 B
Docker
FROM openjdk:8-jre
|
|
|
|
|
|
WORKDIR /joal/
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y ca-certificates curl \
|
|
&& JOAL_VERSION="2.0.8" \
|
|
&& curl -LO "https://github.com/anthonyraymond/joal/releases/download/v$JOAL_VERSION/joal.tar.gz" \
|
|
&& tar --wildcards -zxvf joal.tar.gz "jack-of-all-trades-$JOAL_VERSION.jar" \
|
|
&& mv "jack-of-all-trades-$JOAL_VERSION.jar" joal.jar \
|
|
&& rm joal.tar.gz \
|
|
&& apt-get remove -y curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
EXPOSE 5081 49152-65534
|
|
|
|
VOLUME /data
|
|
|
|
ENTRYPOINT ["java","-jar","/joal/joal.jar"]
|
|
CMD ["--joal-conf=/data"]
|