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
Renovate Bot 38673f738c
Some checks failed
ci/woodpecker/pull_request_closed/lint Pipeline was successful
ci/woodpecker/pull_request_closed/build Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/pr/build Pipeline was successful
chore(deps): update alpine docker tag to v3.20.0
2024-05-23 00:01:17 +00:00

19 lines
637 B
Docker

FROM alpine:3.20.0 AS builder
ARG MDNS_REPEATER_VERSION=local
WORKDIR /
COPY mdns-repeater.c mdns-repeater.c
# hadolint ignore=DL3018
RUN set -ex && \
apk add --no-cache build-base && \
gcc -o /bin/mdns-repeater mdns-repeater.c -DMDNS_REPEATER_VERSION=\"${MDNS_REPEATER_VERSION}\"
FROM alpine:3.20.0
# hadolint ignore=DL3018
RUN set -ex && \
apk add --no-cache vlan libcap bash
COPY --from=builder /bin/mdns-repeater /bin/mdns-repeater
COPY run.sh /app/
RUN chmod +x /bin/mdns-repeater && setcap cap_net_raw=+ep /bin/mdns-repeater && chmod +x /app/run.sh
# hadolint ignore=DL3025
ENTRYPOINT /bin/bash /app/run.sh "${VLANS}"