forked from rapejim/emby-plexdrive-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 914 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
FROM linuxserver/emby:latest
LABEL maintainer="https://github.com/xiocode"
ENTRYPOINT ["/init"]
ENV PLEXDRIVE_CONFIG_DIR="/plexdrive" \
CHANGE_PLEXDRIVE_CONFIG_DIR_OWNERSHIP="true" \
PLEXDRIVE_MOUNT_POINT="/home/media" \
PLEXDRIVE_OPTS=""
COPY root/ /
RUN apt-get update -qq && apt-get install -qq -y \
fuse \
wget \
&& \
# Update fuse.conf
sed -i 's/#user_allow_other/user_allow_other/g' /etc/fuse.conf && \
chown abc:abc /plexdrive-install.sh /healthcheck.sh && \
chmod +x /plexdrive-install.sh /healthcheck.sh && \
# Install plexdrive
/plexdrive-install.sh && \
# Cleanup
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
rm -rf /var/tmp/*
HEALTHCHECK --interval=3m --timeout=100s \
CMD test -r $(find ${PLEXDRIVE_MOUNT_POINT} -maxdepth 1 -print -quit) && /healthcheck.sh || exit 1