forked from PlusMinus0/headless-jd2-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalpine.Dockerfile
19 lines (14 loc) · 851 Bytes
/
alpine.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM openjdk:8-jre-alpine
MAINTAINER PlusMinus <[email protected]>
# Create directory, and start JD2 for the initial update and creation of config files.
RUN apk update && apk upgrade && \
apk add --no-cache --quiet tini su-exec shadow ffmpeg && \
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
# 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"]