From 1a020e5788eb60a52aa85f4ad8c01ad923083e99 Mon Sep 17 00:00:00 2001 From: developersteve Date: Wed, 17 Jan 2024 14:01:06 +1100 Subject: [PATCH] Update Dockerfile to include a NEO_LINK_MODE This enables the ability to change the neolink mode type using an env var so that it's not locked to RTSP but will default to RTSP if the env var is not set. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 34c52ed..c262b75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ FROM docker.io/rust:slim-bookworm AS build ARG TARGETPLATFORM ENV DEBIAN_FRONTEND=noninteractive +ENV NEO_LINK_MODE rtsp WORKDIR /usr/local/src/neolink @@ -85,6 +86,6 @@ RUN gst-inspect-1.0; \ "/usr/local/bin/neolink" --version && \ mkdir -m 0700 /root/.config/ # Location that the push notifications are cached to -CMD ["/usr/local/bin/neolink", "rtsp", "--config", "/etc/neolink.toml"] +CMD ["/usr/local/bin/neolink", "${NEO_LINK_MODE}", "--config", "/etc/neolink.toml"] ENTRYPOINT ["/entrypoint.sh"] EXPOSE 8554