-
-
Save tmm1/4aabe84ce8ee576d4c17a757f111394b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
RUN apk add --update curl && rm -rf /var/cache/apk/* | |
RUN mkdir -p /channels-dvr/data /data | |
COPY run.sh run.sh | |
VOLUME ["/channels-dvr", "/shares"] | |
CMD ./run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
if [ ! -x /channels-dvr/latest/channels-dvr ]; then | |
echo Installing Channels DVR.. | |
curl -f -s https://getchannels.com/dvr/setup.sh | DOWNLOAD_ONLY=1 sh | |
fi | |
cd /channels-dvr/data | |
echo Running Channels DVR.. | |
exec ../latest/channels-dvr >> channels-dvr.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment