FROM golang:bullseye AS builder COPY . /src RUN apt update && apt install -y npm RUN cd / && npm i bootswatch > /dev/null 2>&1 \ && npm i bootstrap-icons > /dev/null 2>&1 RUN cd /src/cmd/WatchYourLAN/ && CGO_ENABLED=0 go build -o /WatchYourLAN . FROM alpine WORKDIR /app RUN apk add --no-cache tzdata arp-scan \ && mkdir /data COPY --from=builder /WatchYourLAN /app/ COPY --from=builder /node_modules /app/ ENTRYPOINT ["./WatchYourLAN"] CMD ["-b", "/app/node_modules"]