From c82b533772184cf2874d20a67b20417810f64f82 Mon Sep 17 00:00:00 2001 From: Gareth Sylvester-Bradley <31761158+garethsb@users.noreply.github.com> Date: Mon, 19 Feb 2024 09:45:33 +0000 Subject: [PATCH] Make base image an argument (#29) --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3230a89..241385e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM ubuntu:jammy as stage1-build +ARG BASE_IMAGE=ubuntu:jammy + +FROM ${BASE_IMAGE} as stage1-build MAINTAINER rhastie@nvidia.com LABEL maintainer="rhastie@nvidia.com" @@ -93,8 +95,8 @@ RUN cd /home/nmos-cpp/Development/build && \ cp nmos-cpp-node nmos-cpp-registry /home && \ cd /home && rm -rf .git nmos-cpp nmos-js -## Re-build container for optimised runtime environment using clean Ubuntu Jammy release -FROM ubuntu:jammy +## Re-build container for optimised runtime environment using clean base image +FROM ${BASE_IMAGE} ##Copy required files from build container COPY --from=stage1-build /home /home