-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (48 loc) · 1.37 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM jsmsalt/java-rpi:latest
MAINTAINER Jose Morales <jsmsalt@gmail.com>
# Full installation.
RUN echo "********** [INSTALLING DEPENDENCIES] **********" \
&& apk add --update --no-cache --virtual build-dependencies \
xz \
tar \
curl \
ca-certificates \
&& apk add --no-cache \
inotify-tools \
tzdata \
\
\
&& echo "********** [INSTALLING FILEBOT] **********" \
&& mkdir -p /opt/share/filebot \
&& cd /opt/share/filebot \
&& curl -s -L -o filebot.tar.xz https://sourceforge.net/projects/filebot/files/filebot/FileBot_4.7.9/FileBot_4.7.9-portable.tar.xz/download \
&& chmod 777 filebot.tar.xz \
&& tar xvf filebot.tar.xz \
&& ln -sf /opt/share/filebot/filebot.sh /usr/local/bin/filebot \
\
\
&& echo "********** [CLEAN UP] **********" \
&& apk del build-dependencies \
&& rm filebot.tar.xz \
&& rm filebot.portable.launcher.exe \
&& rm filebot.portable.launcher.l4j.ini \
&& rm filebot.cmd \
&& rm update-filebot.sh \
&& rm -rf \
/tmp/* \
/var/tmp/* \
/var/cache/apk/* \
/opt/share/filebot/lib/x86_64/* \
/opt/share/filebot/lib/i686/* \
/opt/share/filebot/lib/aarch64/*
# Set volumes.
VOLUME /downloads /media /config
# Copy scripts.
COPY start.sh /start.sh
COPY filebot.sh /filebot.sh
COPY postprocess.sh /postprocess.sh
RUN chmod +x /start.sh \
&& chmod +x /filebot.sh \
&& chmod +x /postprocess.sh
# Define default entrypoint.
ENTRYPOINT ["/start.sh"]