From 88addd2f8e25aeacbde4e0cef5a7b86e67112501 Mon Sep 17 00:00:00 2001 From: Mikolaj Stawiski <26871388+stawiski@users.noreply.github.com> Date: Wed, 24 May 2023 20:55:38 +1000 Subject: [PATCH] Implement Dockerfile. --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2faba64 --- /dev/null +++ b/Dockerfile @@ -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 +RUN cmake -B build -S . && cmake --build build && cmake --build build --target install + +FROM alpine:latest + +RUN apk update && apk add libstdc++ libgcc + +COPY --from=build /bloaty/bloaty/build/bloaty /usr/local/bin/bloaty + +# Check that bloaty is installed +RUN bloaty --version + +ENTRYPOINT [ "bloaty" ]