nginx-live/Dockerfile
Oliver Traber f91def5f69
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
ci/woodpecker/manual/docker Pipeline was successful
ci/woodpecker/cron/docker Pipeline was successful
Don't install unnecessary packages
2023-07-09 22:33:09 +02:00

32 lines
770 B
Docker

# Base Image used to create this Image
FROM debian:bookworm-slim
# Maintainer
LABEL maintainer="hi@bluemedia.dev"
ENV DEBIAN_FRONTEND noninteractive
ENV RTMP_PORT 1935
ENV HTTP_PORT 8080
ENV HLS_FRAGMENT_LENGTH 3
ENV HLS_PLAYLIST_LENGTH 20
# Update and install packages
RUN apt update -y && \
apt upgrade -y && \
apt autoremove -y && \
apt install -y --no-install-recommends nginx libnginx-mod-rtmp && \
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"]