16 lines
696 B
Docker
16 lines
696 B
Docker
FROM alpine:3.22 AS build
|
|
RUN apk add --no-cache build-base flex bison git linux-headers
|
|
RUN git clone https://github.com/OLSR/olsrd.git /src && \
|
|
git -C /src checkout 8d2a2500c2f626e45a7d343f2d8160784b34fb37 && \
|
|
sed -i 's/yyunput(0, NULL);/;/' /src/src/cfgparser/oscan.lex && \
|
|
make -C /src -j2 OS=linux DEBUG=0 olsrd
|
|
|
|
FROM alpine:3.22
|
|
RUN apk add --no-cache bird python3 iproute2 iptables
|
|
COPY --from=build /src/olsrd /usr/local/sbin/olsrd
|
|
COPY --from=build /src/license.txt /usr/share/licenses/olsrd.txt
|
|
COPY container/bird.conf.template /opt/olsr/bird.conf.template
|
|
COPY container/start.py /opt/olsr/start.py
|
|
STOPSIGNAL SIGTERM
|
|
ENTRYPOINT ["python3", "-u", "/opt/olsr/start.py"]
|