mirror of
https://github.com/luzifer-docker/rtmp-record.git
synced 2024-11-09 23:20:03 +00:00
Switch to arch version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
962a5d626b
commit
cdd4a9dc86
3 changed files with 24 additions and 9 deletions
18
Dockerfile
18
Dockerfile
|
@ -9,13 +9,25 @@ RUN set -ex \
|
||||||
/tmp/dumb-init
|
/tmp/dumb-init
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM luzifer/arch-repo-builder as aur
|
||||||
|
|
||||||
|
ENV SKIP_VERIFY=true
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk --no-cache add \
|
&& pacman -Syu --noconfirm nginx \
|
||||||
|
&& /usr/local/bin/run.sh "https://aur.archlinux.org/nginx-mod-rtmp.git" \
|
||||||
|
&& cp git/nginx-mod-rtmp-*.pkg.tar.xz /tmp/nginx-mod-rtmp.pkg.tar.xz
|
||||||
|
|
||||||
|
|
||||||
|
FROM luzifer/archlinux:latest
|
||||||
|
|
||||||
|
COPY --from=aur /tmp/nginx-mod-rtmp.pkg.tar.xz /tmp/
|
||||||
|
|
||||||
|
RUN set -ex \
|
||||||
|
&& pacman -Syu --noconfirm \
|
||||||
bash \
|
bash \
|
||||||
nginx \
|
nginx \
|
||||||
nginx-mod-rtmp
|
&& pacman -U --noconfirm /tmp/nginx-mod-rtmp.pkg.tar.xz
|
||||||
|
|
||||||
COPY --from=fetch /tmp/dumb-init /usr/local/bin/
|
COPY --from=fetch /tmp/dumb-init /usr/local/bin/
|
||||||
COPY docker-entrypoint.sh /usr/local/bin/
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
# Ensure nginx can work with the /data dir
|
# Ensure nginx can work with the /data dir
|
||||||
chown -R nginx: /data
|
chown -R http /data
|
||||||
|
chgrp -R http /data
|
||||||
|
|
||||||
exec nginx -g "daemon off;"
|
exec nginx -g "daemon off;"
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
|
||||||
user nginx;
|
user http;
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
|
|
||||||
error_log /var/log/nginx/error.log warn;
|
error_log /var/log/nginx/error.log warn;
|
||||||
pid /var/run/nginx.pid;
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
include /etc/nginx/modules/rtmp.conf;
|
load_module /usr/lib/nginx/modules/ngx_rtmp_module.so;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
|
@ -40,6 +40,8 @@ http {
|
||||||
}
|
}
|
||||||
|
|
||||||
rtmp {
|
rtmp {
|
||||||
|
access_log off;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 1935;
|
listen 1935;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue