FROM debian:bullseye AS builder WORKDIR /app/src/ RUN apt-get -y -q update RUN apt-get -y -q install make binutils gcc libc-dev tcpdump COPY . . RUN ./configure --prefix=/app RUN make clean all install clean FROM debian:bullseye WORKDIR /app COPY --from=builder /app /app RUN apt-get -y -q update RUN apt-get -y -q install tcpdump #USER daemon:daemon ENTRYPOINT ["/app/sbin/cworker"]