generate-shapes/Dockerfile

26 lines
557 B
Docker
Raw Normal View History

FROM debian:bookworm-slim AS builder
2020-12-02 12:53:29 +00:00
WORKDIR /app
RUN apt-get update && \
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
FROM debian:bookworm-slim
2020-12-02 12:53:29 +00:00
RUN apt-get update && \
apt-get install -y libgomp1 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"]