Skip to content

Commit

Permalink
Make base image an argument (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethsb authored Feb 19, 2024
1 parent cdfb696 commit c82b533
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM ubuntu:jammy as stage1-build
ARG BASE_IMAGE=ubuntu:jammy

FROM ${BASE_IMAGE} as stage1-build
MAINTAINER [email protected]
LABEL maintainer="[email protected]"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c82b533

Please sign in to comment.