-
Notifications
You must be signed in to change notification settings - Fork 346
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
Implement Docker #343
base: main
Are you sure you want to change the base?
Implement Docker #343
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Signed the CLA |
@@ -0,0 +1,18 @@ | |||
FROM alpine:latest AS build | |||
|
|||
RUN apk update && apk add git cmake build-base zlib-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUN apk update && apk add git cmake build-base zlib-dev | |
RUN apk add --no-cache git cmake build-base zlib-dev |
WORKDIR /bloaty | ||
RUN git clone https://github.com/google/bloaty.git | ||
WORKDIR /bloaty/bloaty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WORKDIR /bloaty | |
RUN git clone https://github.com/google/bloaty.git | |
WORKDIR /bloaty/bloaty | |
WORKDIR /bloaty | |
RUN git clone --depth=1 https://github.com/google/bloaty.git . |
FROM alpine:latest | ||
|
||
RUN apk update && apk add libstdc++ libgcc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FROM alpine:latest | |
RUN apk update && apk add libstdc++ libgcc | |
FROM alpine:latest | |
RUN apk add --no-cache libstdc++ libgcc |
|
||
RUN apk update && apk add libstdc++ libgcc | ||
|
||
COPY --from=build /bloaty/bloaty/build/bloaty /usr/local/bin/bloaty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
COPY --from=build /bloaty/bloaty/build/bloaty /usr/local/bin/bloaty | |
COPY --link --from=build /bloaty/build/bloaty /usr/local/bin/bloaty |
WORKDIR /bloaty | ||
RUN git clone https://github.com/google/bloaty.git | ||
WORKDIR /bloaty/bloaty | ||
RUN cmake -B build -S . && cmake --build build && cmake --build build --target install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUN cmake -B build -S . && cmake --build build && cmake --build build --target install | |
RUN cmake -B build -S . \ | |
&& cmake --build build \ | |
&& cmake --build build --target install |
I wrote a Dockerfile for this. Minimal image, only 53MB!