9a5fc2abdf
* Update Debian base image to newest version * Add workflow for building container image * Use date-based tags
26 lines
496 B
Docker
26 lines
496 B
Docker
FROM debian:bookworm-slim AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y g++ cmake git
|
|
|
|
ADD . /app
|
|
RUN mkdir build && \
|
|
cd build && \
|
|
cmake .. && \
|
|
make -j && \
|
|
pwd && \
|
|
make install
|
|
|
|
FROM debian:buster-slim
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y libgomp1 && \
|
|
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"]
|