-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile.alpine
35 lines (24 loc) · 1.2 KB
/
Dockerfile.alpine
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
FROM openjdk:17-alpine
LABEL maintainer="Reinhard Pointner <[email protected]>"
ENV FILEBOT_VERSION="5.1.6"
ENV FILEBOT_URL="https://get.filebot.net/filebot/FileBot_$FILEBOT_VERSION/FileBot_$FILEBOT_VERSION-portable.tar.xz"
ENV FILEBOT_SHA256="f5745885e7420d6b4d3e300accae253a9ac7c1b2633a017a1cdd8c667959f481"
ENV FILEBOT_HOME="/opt/filebot"
RUN apk add --update mediainfo chromaprint p7zip unrar \
&& rm -rf /var/cache/apk/*
RUN set -eux \
## * fetch portable package
&& wget -O /tmp/filebot.tar.xz "$FILEBOT_URL" \
&& echo "$FILEBOT_SHA256 */tmp/filebot.tar.xz" | sha256sum -c - \
## * install application files
&& mkdir -p "$FILEBOT_HOME" \
&& tar --extract --file /tmp/filebot.tar.xz --directory "$FILEBOT_HOME" --verbose \
&& rm -v /tmp/filebot.tar.xz \
## * delete incompatible native binaries
&& find /opt/filebot/lib -type f -not -name libjnidispatch.so -delete \
## * link /opt/filebot/data -> /data to persist application data files to the persistent data volume
&& ln -s /data /opt/filebot/data
ENV HOME="/data"
ENV LANG="C.UTF-8"
ENV FILEBOT_OPTS="-Dapplication.deployment=docker -Dnet.filebot.archive.extractor=ShellExecutables -Duser.home=$HOME"
ENTRYPOINT ["/opt/filebot/filebot.sh"]