Skip to content

Commit 325c7cd

Browse files
committed
new base image that fixes signal handling
1 parent b8b0f5a commit 325c7cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
FROM resin/rpi-raspbian
1+
FROM sdhibit/rpi-raspbian
22

33
RUN apt-get update && apt-get install wget apt-transport-https -y --force-yes && \
44
wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | apt-key add - && \
55
echo "deb https://dev2day.de/pms/ jessie main" > /etc/apt/sources.list.d/pms.list && \
6-
apt-get update && apt-get install -t jessie plexmediaserver -y
6+
apt-get update && apt-get install -t jessie plexmediaserver -y && \
7+
apt-get autoremove && apt-get clean
78

89
EXPOSE 32400
910

@@ -13,5 +14,4 @@ VOLUME /media
1314
ADD daemon.sh /root/daemon.sh
1415
RUN chmod +x /root/daemon.sh
1516

16-
ENTRYPOINT ["bash"]
1717
CMD ["/root/daemon.sh"]

daemon.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh
2-
trap 'kill -TERM $PID' TERM INT SIGTERM SIGINT
3-
rm /root/Library/Application\ Support/Plex\ Media\ Server/plexmediaserver.pid
2+
trap 'kill -TERM $PID' TERM INT
43
/usr/sbin/start_pms &
54
PID=$!
65
wait $PID
76
wait $PID
7+
rm /root/Library/Application\ Support/Plex\ Media\ Server/plexmediaserver.pid
88
EXIT_STATUS=$?

0 commit comments

Comments
 (0)