mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 15:49:30 +00:00
22 lines
1.1 KiB
Docker
22 lines
1.1 KiB
Docker
FROM openjdk:11-jre-slim-sid
|
|
|
|
MAINTAINER PlusMinus <piddlpiddl@gmail.com>
|
|
|
|
# Create directory, and start JD2 for the initial update and creation of config files.
|
|
RUN apt-get update && apt-get dist-upgrade -yqq && \
|
|
apt-get install -yqq tini ffmpeg wget make gcc jq && \
|
|
mkdir -p /opt/JDownloader/libs && \
|
|
wget -O /opt/JDownloader/JDownloader.jar --user-agent="https://hub.docker.com/r/plusminus/jdownloader2-headless/" http://installer.jdownloader.org/JDownloader.jar && \
|
|
java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar && \
|
|
mkdir -p /tmp/ && chmod 1777 /tmp &&\
|
|
wget -O /tmp/su-exec.tar.gz https://github.com/ncopa/su-exec/archive/v0.2.tar.gz && \
|
|
cd /tmp/ && tar -xf su-exec.tar.gz && cd su-exec-0.2 && make && cp su-exec /usr/bin &&\
|
|
apt-get purge -yqq wget make gcc && apt-get autoremove -yqq && cd / && rm -rf /tmp/*
|
|
# Beta sevenzipbindings and entrypoint
|
|
COPY common/* /opt/JDownloader/
|
|
RUN chmod +x /opt/JDownloader/entrypoint.sh
|
|
|
|
|
|
ENTRYPOINT ["tini", "-g", "--", "/opt/JDownloader/entrypoint.sh"]
|
|
# Run this when the container is started
|
|
CMD ["java", "-Djava.awt.headless=true", "-jar", "/opt/JDownloader/JDownloader.jar"]
|