You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
822 B
28 lines
822 B
FROM debian:12 as builder
|
|
ENV release=1.13
|
|
RUN apt-get update && apt-get install -y git build-essential cmake gcc git libpcre3-dev libssl-dev linux-libc-dev
|
|
|
|
RUN git clone --branch $release --depth 1 https://github.com/accel-ppp/accel-ppp.git /usr/src/accel-ppp
|
|
|
|
WORKDIR /usr/src/accel-ppp/build
|
|
|
|
RUN cmake \
|
|
-DRADIUS=TRUE \
|
|
-DNETSNMP=FALSE \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
..
|
|
|
|
RUN make install
|
|
|
|
|
|
FROM debian:12
|
|
|
|
RUN apt-get update && apt-get install -y libpcre3 libssl3 ppp
|
|
|
|
COPY --from=builder /usr/sbin/accel-pppd /usr/sbin/accel-pppd
|
|
COPY --from=builder /usr/bin/accel-cmd /usr/bin/accel-cmd
|
|
COPY --from=builder /usr/share/accel-ppp /usr/share/accel-ppp
|
|
COPY --from=builder /usr/lib64/accel-ppp /usr/lib64/accel-ppp
|
|
|
|
ENTRYPOINT ["/usr/sbin/accel-pppd"]
|
|
CMD ["-c", "/etc/accel-ppp.conf"] |