mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-26 12:24:32 +00:00
22 lines
617 B
Docker
22 lines
617 B
Docker
FROM alpine:latest
|
|
ARG BUILD_TYPE=Release
|
|
|
|
LABEL name "pe-parse"
|
|
LABEL src "https://github.com/trailofbits/pe-parse"
|
|
LABEL creator "Trail of Bits"
|
|
LABEL dockerfile_maintenance "William Woodruff <william@trailofbits>"
|
|
LABEL desc "Principled, lightweight C/C++ PE parser"
|
|
|
|
RUN apk add --no-cache cmake icu-dev build-base
|
|
|
|
COPY . /app/pe-parse
|
|
WORKDIR /app/pe-parse
|
|
RUN mkdir build && \
|
|
cd build && \
|
|
cmake -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" .. && \
|
|
cmake --build . --config "${BUILD_TYPE}" && \
|
|
cmake --build . --config "${BUILD_TYPE}" --target install
|
|
|
|
ENTRYPOINT [ "/usr/bin/dump-pe" ]
|
|
CMD ["--help"]
|