-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,18 @@ | ||||||||||||
FROM alpine:latest AS build | ||||||||||||
|
||||||||||||
RUN apk update && apk add git cmake build-base zlib-dev | ||||||||||||
WORKDIR /bloaty | ||||||||||||
RUN git clone https://github.com/google/bloaty.git | ||||||||||||
WORKDIR /bloaty/bloaty | ||||||||||||
Comment on lines
+4
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
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 commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
|
||||||||||||
FROM alpine:latest | ||||||||||||
|
||||||||||||
RUN apk update && apk add libstdc++ libgcc | ||||||||||||
Comment on lines
+9
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
|
||||||||||||
COPY --from=build /bloaty/bloaty/build/bloaty /usr/local/bin/bloaty | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
|
||||||||||||
# Check that bloaty is installed | ||||||||||||
RUN bloaty --version | ||||||||||||
|
||||||||||||
ENTRYPOINT [ "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.