-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (36 loc) · 1.16 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
FROM s6on/debian
ENV DEBIAN_FRONTEND noninteractive
# update install
RUN apt-get update -y && apt-get upgrade -y && \
\
# install dependancies
apt-get -y install apt-transport-https ca-certificates gnupg-agent curl
# add plex gpg key
RUN mkdir /root/.gnupg/ && chmod 600 /root/.gnupg && \
gpg --no-default-keyring --keyring /usr/share/keyrings/resilio-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BE66CC4C3F171DE2 && \
\
# add plex repo
echo "deb [signed-by=/usr/share/keyrings/resilio-archive-keyring.gpg] http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | tee /etc/apt/sources.list.d/resilio-sync.list && \
\
# install pms
apt-get update && \
echo "y" | apt-get install -y resilio-sync
# Setup directories
RUN mkdir -p \
/config \
/resilio \
/downloads
# Cleanup
RUN apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
rm -rf /var/tmp/*
# add local files
COPY root/ /
EXPOSE 8888 55555
VOLUME /resilio /config /downloads
ENV CHANGE_CONFIG_DIR_OWNERSHIP="true" \
HOME="/config"
ENTRYPOINT ["/init"]
HEALTHCHECK NONE