added rtmp module to nginx image
This commit is contained in:
@@ -65,6 +65,7 @@ ADD --chown=luser:luser git@github.com:woggioni/nginx.git#release-${NGINX_VERSIO
|
||||
FROM build_stage_2_${NGINX_BRANCH} AS build
|
||||
ADD --chown=luser:luser https://github.com/openresty/headers-more-nginx-module.git /ngx_headers_more
|
||||
ADD --chown=luser:luser https://github.com/google/ngx_brotli.git /ngx_brotli
|
||||
|
||||
USER root
|
||||
WORKDIR /
|
||||
RUN hg clone http://hg.nginx.org/njs /njs
|
||||
@@ -74,6 +75,12 @@ WORKDIR /home/luser
|
||||
ADD --chown=luser:luser --chmod=755 ./build.sh ./build.sh
|
||||
RUN ./build.sh
|
||||
|
||||
FROM build_stage_2_${NGINX_BRANCH} AS build-rtmp
|
||||
ADD --chown=luser:luser https://github.com/arut/nginx-rtmp-module.git /ngx-rtmp-module
|
||||
USER luser
|
||||
WORKDIR /home/luser
|
||||
ADD --chown=luser:luser --chmod=755 ./build-rtmp.sh ./build-rtmp.sh
|
||||
RUN ./build-rtmp.sh
|
||||
|
||||
FROM base AS release
|
||||
ARG VERSION
|
||||
@@ -91,7 +98,7 @@ RUN --mount=type=cache,target=/var/cache/apk \
|
||||
--mount=type=bind,source=install.sh,target=/install.sh \
|
||||
(cd nginx && sh /install.sh)
|
||||
RUN --mount=type=cache,target=/var/cache/apk apk del .install_deps
|
||||
|
||||
COPY --from=build-rtmp --chown=root:root /nginx/objs/ngx_rtmp_module.so /usr/lib/nginx/modules/
|
||||
COPY --from=build /home/luser/libressl/openssl.cnf /etc/ssl/openssl.cnf
|
||||
COPY conf/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY conf/dhparam /etc/nginx/dhparam
|
||||
|
||||
Reference in New Issue
Block a user