From 65725778597782d975cc4220b31043214c9b8bec Mon Sep 17 00:00:00 2001 From: Zachary Fouts Date: Fri, 7 Jun 2024 14:37:07 +0000 Subject: [PATCH] Support upgrading base upstream image. This will ensure latest available security patches are applied on each build. Some upstream images take months to be updated. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a221725..7c8bd18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,7 @@ RUN echo "TARGETPLATFORM: ${TARGETPLATFORM}"; \ else \ echo "Building from scratch"; \ apt-get update && \ + apt-get upgrade -y && \ apt-get install -y --no-install-recommends \ build-essential \ openssl \ @@ -58,6 +59,7 @@ LABEL maintainer="$OWNER" # hadolint ignore=DL3008 RUN apt-get update && \ + apt-get upgrade -y && \ apt-get install -y --no-install-recommends \ openssl \ dnsutils \ @@ -83,9 +85,9 @@ RUN gst-inspect-1.0; \ "/usr/local/bin/neolink" --version && \ mkdir -m 0700 /root/.config/ - ENV NEO_LINK_MODE="rtsp" NEO_LINK_PORT=8554 CMD /usr/local/bin/neolink "${NEO_LINK_MODE}" --config /etc/neolink.toml ENTRYPOINT ["/entrypoint.sh"] EXPOSE ${NEO_LINK_PORT} +