Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make base image an argument #29

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading