2024-02-15 07:23:13 +00:00
|
|
|
FROM debian:bookworm-slim AS builder
|
2020-12-02 12:53:29 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2024-02-15 07:53:23 +00:00
|
|
|
apt-get install -y g++ cmake git libzip-dev zlib1g-dev libbz2-dev
|
2020-12-02 12:53:29 +00:00
|
|
|
|
|
|
|
ADD . /app
|
|
|
|
RUN mkdir build && \
|
|
|
|
cd build && \
|
|
|
|
cmake .. && \
|
|
|
|
make -j && \
|
|
|
|
pwd && \
|
|
|
|
make install
|
|
|
|
|
2024-02-15 07:53:23 +00:00
|
|
|
FROM debian:bookworm-slim
|
2020-12-02 12:53:29 +00:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
2024-02-15 12:41:41 +00:00
|
|
|
apt-get install -y libzip4 zlib1g libbz2-1.0 && \
|
2020-12-02 12:53:29 +00:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY --from=builder /usr/local/etc/pfaedle /usr/local/etc/pfaedle
|
|
|
|
COPY --from=builder /usr/local/bin/pfaedle /usr/local/bin/pfaedle
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/pfaedle"]
|