ensure hosts are set when building

otherwise when we try to add the certs to .gnutls/known_hosts, it wont
get the correct cert
This commit is contained in:
Cory Forsstrom
2020-02-26 16:28:14 -08:00
parent d8a1c5332b
commit cb4cdee360
2 changed files with 12 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
FROM alpine:latest FROM alpine:latest
RUN cat /etc/hosts
RUN apk update RUN apk update
RUN apk upgrade RUN apk upgrade
RUN apk add --no-cache ca-certificates RUN apk add --no-cache ca-certificates

9
build.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
export IP=$(getent ahostsv4 freegamez.ga | awk '{ print $1 }' | head -1)
docker build -t taylorbourne/xteve_lazystream \
--add-host="mf.svc.nhl.com:$IP" \
--add-host="playback.svcs.mlb.com:$IP" \
--add-host="mlb-ws-mf.media.mlb.com:$IP" \
.