Fix and add test for /tmp issue (#30 #31).

This commit is contained in:
PlusMinus0 2018-12-05 12:13:02 +01:00
parent 95d6c05f6f
commit 083105c5a1
2 changed files with 6 additions and 3 deletions

View file

@ -8,11 +8,10 @@ RUN apt-get update && apt-get dist-upgrade -yqq && \
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/ && \
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
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

View file

@ -14,6 +14,10 @@ file:
mode: "0664"
filetype: file
contains: []
/tmp:
exists: true
mode: "1777"
filetype: directory
package:
ffmpeg:
installed: true