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.
This commit is contained in:
developersteve authored and GitHub committed 2024-01-17 14:01:06 +11:00
1 parent 4a94a2ddb2
commit 1a020e5788
1 file changed
+2 -1
+2 -1
View File
@@ -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