Skip to content

Commit

Permalink
Add tini to fix updatable binary
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Aug 29, 2017
1 parent 062cc38 commit 38a84c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ MAINTAINER Jay MOULIN <[email protected]>
RUN mkdir /opt/JDownloader/
RUN apk add --update libstdc++ && apk add wget --virtual .build-deps && \
wget -O /opt/JDownloader/JDownloader.jar "http://installer.jdownloader.org/JDownloader.jar?$RANDOM" && chmod +x /opt/JDownloader/JDownloader.jar && \
wget -O /sbin/tini "https://github.com/krallin/tini/releases/download/v0.16.1/tini-static-armhf" --no-check-certificate && chmod +x /sbin/tini && \
apk del wget --purge .build-deps
ENV LD_LIBRARY_PATH=/lib;/lib32;/usr/lib

Expand All @@ -19,4 +20,4 @@ VOLUME /root/Downloads
VOLUME /opt/JDownloader/cfg
WORKDIR /opt/JDownloader

CMD ["/opt/JDownloader/daemon.sh"]
CMD ["/sbin/tini", "--", "/opt/JDownloader/daemon.sh"]

0 comments on commit 38a84c6

Please sign in to comment.