2020-09-18 21:03:17 +02:00
|
|
|
FROM alpine:3.12
|
|
|
|
|
2020-09-20 01:07:04 +02:00
|
|
|
RUN apk add --no-cache nginx nginx-mod-rtmp; \
|
|
|
|
mkdir -p /etc/nginx/streams.d; \
|
|
|
|
ln -sf /dev/stdout /var/log/nginx/access.log; \
|
|
|
|
ln -sf /dev/stderr /var/log/nginx/error.log
|
2020-09-18 21:03:17 +02:00
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /
|
2020-09-20 22:41:47 +02:00
|
|
|
COPY nginx.conf /etc/nginx/
|
2020-09-18 21:03:17 +02:00
|
|
|
|
|
|
|
WORKDIR /var/www/live
|
|
|
|
|
|
|
|
EXPOSE 80
|
2020-09-20 01:07:20 +02:00
|
|
|
EXPOSE 1935
|
2020-09-18 21:03:17 +02:00
|
|
|
|
|
|
|
STOPSIGNAL SIGTERM
|
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
CMD ["-g", "daemon off;"]
|