mirror of
https://github.com/BluemediaGER/nginx-live.git
synced 2024-11-26 03:05:30 +01:00
30 lines
696 B
Docker
30 lines
696 B
Docker
# Base Image used to create this Image
|
|
FROM debian:buster-slim
|
|
|
|
# Maintainer
|
|
LABEL maintainer="oliver@traber-info.de"
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV RTMP_PORT 1935
|
|
ENV HTTP_PORT 8080
|
|
|
|
# Update and install packages
|
|
RUN apt update -y && \
|
|
apt upgrade -y && \
|
|
apt autoremove -y && \
|
|
apt install nginx libnginx-mod-rtmp -y && \
|
|
apt clean && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
# Create nginx user
|
|
RUN useradd -s /bin/false nginx
|
|
|
|
# Copy files into image
|
|
COPY config/ /template/
|
|
COPY frontend/ /var/www/html/
|
|
COPY entrypoint /entrypoint
|
|
RUN chmod +x /entrypoint && chown -R www-data:www-data /var/www/html/
|
|
|
|
ENTRYPOINT ["/entrypoint"]
|
|
CMD ["/usr/sbin/nginx"]
|