From f45595086558a727969b33fdbc0c67cacfb7ff97 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 30 Sep 2020 16:59:45 +0200 Subject: [PATCH] FFMPEG is needed to use stream forward --- .gitlab-ci.yml | 2 +- Dockerfile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5c3c80c..8773397 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ unit_tests: image: golang:1.15-alpine stage: test before_script: - - apk add --no-cache build-base gcc + - apk add --no-cache build-base ffmpeg gcc - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing libsrt-dev script: - go test -v -covermode=count -coverprofile cover.cov ./... diff --git a/Dockerfile b/Dockerfile index 0787a3a..3e44d50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ RUN go generate && go build -o ./out/ghostream . # Production image FROM alpine:3.12 RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing libsrt +RUN apk add ffmpeg COPY --from=build_base /code/out/ghostream /app/ghostream WORKDIR /app # 9710 for SRT, 8080 for Web, 2112 for monitoring and 10000-10005 (UDP) for WebRTC