Skip to content

Image to build C++ bazel projects compatible with distroless

Notifications You must be signed in to change notification settings

carloscdias/cpp-bazel-distroless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

cpp-bazel-distroless

This image downloads and install bazel on top of a compatible environment for C++ distroless projects.

Example

You can have this multiple stage Dockerfile on the root directory of your project.

FROM carlosdias/cpp-bazel-distroless:1.0 as builder
RUN bazel --output_user_root=output build --compilation_mode=opt :target
FROM gcr.io/distroless/cc
COPY --from=builder /app/bazel-bin/target /app/target
CMD ["/app/target"]

More details and versions in carlosdias/cpp-bazel-distroless

About

Image to build C++ bazel projects compatible with distroless

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published