move hosts and cert update to run

This commit is contained in:
Cory Forsstrom
2020-02-26 17:34:44 -08:00
parent cb4cdee360
commit 2d5b7ab7d2
4 changed files with 28 additions and 12 deletions

View File

@@ -1,7 +1,5 @@
FROM alpine:latest
RUN cat /etc/hosts
RUN apk update
RUN apk upgrade
RUN apk add --no-cache ca-certificates
@@ -32,11 +30,8 @@ RUN apk add ffmpeg
RUN apk add vlc
RUN sed -i 's/geteuid/getppid/' /usr/bin/vlc
# Add SSL certs for lazystream
# Add GNUtls so we can update certs
RUN apk add --no-cache gnutls-utils
RUN printf 'y\n' | gnutls-cli --tofu playback.svcs.mlb.com:443
RUN printf 'y\n' | gnutls-cli --tofu mf.svc.nhl.com:443
RUN printf 'y\n' | gnutls-cli --tofu mlb-ws-mf.media.mlb.com:443
# Add xTeve and guide2go
RUN wget https://github.com/xteve-project/xTeVe-Downloads/raw/master/xteve_linux_amd64.zip -O temp.zip; unzip temp.zip -d /usr/bin/; rm temp.zip