From c0b05c5bf6cdffa2e0152b3d2164079a64fa87a8 Mon Sep 17 00:00:00 2001 From: chandi Date: Sun, 31 May 2020 11:49:57 +0200 Subject: [PATCH] webrtc-sfu: fix broken ip detection due to base image switch --- mod/webrtc-sfu/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/webrtc-sfu/Dockerfile b/mod/webrtc-sfu/Dockerfile index e8138e8..5c5c7b1 100644 --- a/mod/webrtc-sfu/Dockerfile +++ b/mod/webrtc-sfu/Dockerfile @@ -19,5 +19,10 @@ RUN cp config/default.example.yml config/production.yml \ EXPOSE 3008 +# remove automatic IP detection (broken in alpine) +# and use sh instead of bash +RUN sed -i 's/CONTAINER_IP=.*/CONTAINER_IP=10.7.7.10/' /app/docker-entrypoint.sh \ + && sed -i 's/bash/sh/' /app/docker-entrypoint.sh + ENTRYPOINT [ "./docker-entrypoint.sh" ] CMD [ "npm", "start" ]