-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
47 lines (31 loc) · 1.03 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
FROM alpine:3.18.3 as builder
RUN apk add --no-cache --update-cache --upgrade \
autoconf \
automake \
curl \
fuse-dev \
g++ \
make \
tar
ARG RAR_VERSION=6.2.10
ARG RAR2FS_VERSION=1.29.6
RUN curl -L -O "https://www.rarlab.com/rar/unrarsrc-$RAR_VERSION.tar.gz" && \
curl -L -O "https://github.com/hasse69/rar2fs/releases/download/v$RAR2FS_VERSION/rar2fs-$RAR2FS_VERSION.tar.gz"
WORKDIR /rar2fs
RUN tar --strip-components 1 -xzvf "/rar2fs-$RAR2FS_VERSION.tar.gz" && \
tar xzvf "/unrarsrc-$RAR_VERSION.tar.gz"
WORKDIR /rar2fs/unrar
RUN make lib
WORKDIR /rar2fs
RUN autoreconf -f -i && ./configure && make
FROM alpine:3.18.3
ARG FUSE_THREAD_STACK=320000
ENV FUSE_THREAD_STACK $FUSE_THREAD_STACK
RUN apk add --no-cache --update-cache --upgrade \
fuse \
libstdc++
COPY --from=builder /rar2fs/src/rar2fs /usr/local/bin/rar2fs
ENTRYPOINT [ "rar2fs" ]
HEALTHCHECK --interval=5s --timeout=3s \
CMD grep -qs rar2fs /proc/mounts
CMD [ "-f", "-o", "allow_other", "-o", "auto_unmount", "--seek-length=1", "/source", "/destination" ]