| # debian.sh --arch 'arm64' out/ 'bookworm' '@1760918400' |
| 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 |
| RUN /bin/sh -c 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/* # buildkit |
| RUN /bin/sh -c useradd -s /bin/false nginx # buildkit |
| COPY config/ /template/ # buildkit |
| COPY frontend/ /var/www/html/ # buildkit |
| COPY entrypoint /entrypoint # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint && chown -R www-data:www-data /var/www/html/ # buildkit |
| ENTRYPOINT ["/entrypoint"] |
| CMD ["/usr/sbin/nginx"] |