This repository has been archived on 2024-06-05. You can view files and clone it, but cannot push or open issues or pull requests.
mdns-repeater-mikrotik/Dockerfile

20 lines
537 B
Text
Raw Normal View History

2022-07-05 08:20:32 +02:00
FROM alpine AS builder
ARG MDNS_REPEATER_VERSION=local
ADD mdns-repeater.c mdns-repeater.c
RUN set -ex && \
2023-06-10 10:51:28 +02:00
apk add --no-cache build-base && \
2022-07-05 08:20:32 +02:00
gcc -o /bin/mdns-repeater mdns-repeater.c -DMDNS_REPEATER_VERSION=\"${MDNS_REPEATER_VERSION}\"
FROM alpine
RUN set -ex && \
2023-06-10 10:51:28 +02:00
apk add --no-cache vlan libcap bash
2022-07-05 08:20:32 +02:00
COPY --from=builder /bin/mdns-repeater /bin/mdns-repeater
RUN chmod +x /bin/mdns-repeater
RUN setcap cap_net_raw=+ep /bin/mdns-repeater
COPY run.sh /app/
RUN chmod +x /app/run.sh
2023-06-10 10:52:41 +02:00
ENTRYPOINT ["/app/run.sh", "${VLANS}"]