From acf10be3828a60b6c4b401b6f5aaed6c40a81180 Mon Sep 17 00:00:00 2001 From: Luca Rullo Date: Sun, 23 Jul 2023 18:53:49 +0200 Subject: [PATCH] Update --- Dockerfile | 10 ++++++++-- docker-compose.yml | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2b342bf..9f015ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:latest AS base_image FROM base_image AS build -RUN apk add --no-cache curl build-base openssl openssl-dev zlib-dev linux-headers pcre-dev ffmpeg ffmpeg-dev +RUN apk add --no-cache curl git build-base openssl openssl-dev zlib-dev linux-headers pcre-dev ffmpeg ffmpeg-dev RUN mkdir nginx nginx-vod-module @@ -11,11 +11,13 @@ ARG VOD_MODULE_VERSION=6c305a78b7ab6e4312279bea5c45741bb54a713b RUN curl -sL https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | tar -C /nginx --strip 1 -xz RUN curl -sL https://github.com/kaltura/nginx-vod-module/archive/${VOD_MODULE_VERSION}.tar.gz | tar -C /nginx-vod-module --strip 1 -xz +RUN git clone https://github.com/arut/nginx-rtmp-module.git WORKDIR /nginx RUN ./configure --prefix=/usr/local/nginx \ --add-module=../nginx-vod-module \ + --add-module=../nginx-rtmp-module \ --with-http_ssl_module \ --with-file-aio \ --with-threads \ @@ -29,10 +31,14 @@ RUN rm -rf /usr/local/nginx/html /usr/local/nginx/conf/*.default FROM base_image -RUN apk add --no-cache ca-certificates openssl pcre zlib ffmpeg +RUN apk add --no-cache ca-certificates openssl pcre zlib ffmpeg nginx-mod-rtmp COPY --from=build /usr/local/nginx /usr/local/nginx ENTRYPOINT ["/usr/local/nginx/sbin/nginx"] +EXPOSE 80 +EXPOSE 443 +EXPOSE 1935 + CMD ["-g", "daemon off;"] diff --git a/docker-compose.yml b/docker-compose.yml index 22ef796..07dfca6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,7 @@ version: "3" services: vod: + build: . image: registry.audio-lab.org/kaltura-nginx restart: always ports: