-
-
Notifications
You must be signed in to change notification settings - Fork 312
/
Dockerfile
37 lines (28 loc) · 1022 Bytes
/
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
FROM python:3.12-alpine
MAINTAINER Antoine Bertin <[email protected]>
# set version label
ARG BUILD_WITH_UNRAR=false
ARG UNRAR_VERSION=6.2.6
RUN \
if [ "$BUILD_WITH_UNRAR" = true ]; then \
apk add -U --update --no-cache --virtual=build-dependencies build-base curl && \
echo "**** install unrar from source ****" && \
mkdir /tmp/unrar && \
curl -o /tmp/unrar.tar.gz -L "https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
tar xf /tmp/unrar.tar.gz -C /tmp/unrar --strip-components=1 && \
cd /tmp/unrar && \
make && \
install -v -m755 unrar /usr/local/bin && \
apk del build-dependencies curl && \
rm -rf /tmp/unrar /tmp/unrar.tar.gz; \
fi
# install libmediainfo for metadata refiner
RUN apk add --no-cache libmediainfo
RUN mkdir -p /usr/src/app /usr/src/cache
WORKDIR /usr/src/app
VOLUME /usr/src/cache
COPY . /usr/src/app
RUN python -m pip install -U pip
RUN python -m pip install .
ENTRYPOINT ["subliminal", "--cache-dir", "/usr/src/cache"]
CMD ["--help"]