joal/Dockerfile
2018-12-19 00:10:12 +01:00

21 lines
629 B
Docker

FROM openjdk:10.0.1-10-jre-slim
WORKDIR /joal/
RUN apt-get update \
&& apt-get install -y ca-certificates curl \
&& JOAL_VERSION="2.1.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"]