-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (29 loc) · 1013 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
38
39
FROM debian
RUN mkdir -p /config/logs
# Create volumes.
#
# /config - stores user-specific settings
# /mnt - where remote drives will be mounted
#
VOLUME /config
VOLUME /mnt
# Default environmental settings
ENV USERID=1000
ENV UNSYNCED=Cache
ENV UPLOADCACHE=UploadCache
ENV NFSREMOTE=
ENV NFSLOCAL=
ENV MERGEMOUNT=Cloud
ENV MEDIA=Media
ENV TURBOMAX=20
# Install additional files
RUN apt update && apt install curl procps fuse3 jq nfs-common vnstat unzip -y && apt upgrade -y && sed -i 's/^#user_allow_other/user_allow_other/g' /etc/fuse.conf && sed -i 's/^DatabaseDir \"\/var\/lib\/vnstat\"/DatabaseDir=\"\/config\"/g' /etc/vnstat.conf
# Install Rclone from repository
RUN curl https://rclone.org/install.sh | bash
# Bring in scripts and binaries
COPY omni-mounter omni-merger rstats startup turbosync mergerfs.deb version /root/
WORKDIR /root
# Install MergerFS
RUN dpkg -i mergerfs.deb && rm -r mergerfs.deb && apt autoclean -y
# RUN rm -rf /var/cache/apt /var/lib/apt/lists/*
CMD "/root/startup"