mirror of
https://git.netzspielplatz.de/docker-multiarch/jdownloader2-headless.git
synced 2025-11-08 17:09:30 +00:00
19 lines
861 B
Docker
19 lines
861 B
Docker
FROM alpine:3.13
|
|
|
|
MAINTAINER Micha Gläß-Stöcker <micha@glaess.cc>
|
|
|
|
# Create directory, and start JD2 for the initial update and creation of config files.
|
|
RUN apk update && apk upgrade && \
|
|
apk add --no-cache --quiet openjdk8-jre tini su-exec shadow ffmpeg jq && \
|
|
mkdir -p /opt/JDownloader/libs && \
|
|
wget -O /opt/JDownloader/JDownloader.jar --user-agent="https://hub.docker.com/r/egon0/jdownloader2-headless/" http://installer.jdownloader.org/JDownloader.jar && \
|
|
java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar
|
|
|
|
# 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"]
|