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.
2023-06-10 10:57:33 +02:00
|
|
|
FROM alpine:3 AS builder
|
2022-07-05 08:20:32 +02:00
|
|
|
ARG MDNS_REPEATER_VERSION=local
|
2023-06-10 10:56:16 +02:00
|
|
|
WORKDIR /
|
2023-06-10 10:54:58 +02:00
|
|
|
COPY mdns-repeater.c mdns-repeater.c
|
2022-07-05 08:20:32 +02:00
|
|
|
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}\"
|
|
|
|
|
2023-06-10 10:57:33 +02:00
|
|
|
FROM alpine:3
|
2022-07-05 08:20:32 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
COPY run.sh /app/
|
2023-06-10 10:53:31 +02:00
|
|
|
RUN chmod +x /bin/mdns-repeater && setcap cap_net_raw=+ep /bin/mdns-repeater && chmod +x /app/run.sh
|
2022-07-05 08:20:32 +02:00
|
|
|
|
2023-06-10 10:52:41 +02:00
|
|
|
ENTRYPOINT ["/app/run.sh", "${VLANS}"]
|