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"]