-
-
Notifications
You must be signed in to change notification settings - Fork 313
/
Dockerfile
33 lines (25 loc) · 908 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
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
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 .
ENTRYPOINT ["subliminal", "--cache-dir", "/usr/src/cache"]
CMD ["--help"]