-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
29 lines (19 loc) · 633 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
FROM alpine:3.20.2 AS builder
ENV MERGERFS_VERSION=2.40.2
RUN apk add g++ git linux-headers make python3
RUN git clone https://github.com/trapexit/mergerfs /mergerfs
WORKDIR /mergerfs
RUN git checkout -b $MERGERFS_VERSION
RUN make
RUN mv build/mergerfs /bin/mergerfs
FROM alpine:3.20.2
COPY --from=builder /bin/mergerfs /usr/local/bin/mergerfs
RUN apk --no-cache add fuse libgcc libstdc++
RUN echo user_allow_other >> /etc/fuse.conf
COPY entrypoint.sh entrypoint.sh
RUN mkdir /config
COPY parameters.conf /config/parameters.conf
RUN mkdir /disks && \
chmod +x entrypoint.sh
VOLUME /merged
ENTRYPOINT ["./entrypoint.sh"]