Initial commit (tested, PoC compatible with Mikrotik)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user