FROM golang:bullseye AS builder RUN cd / && git clone https://github.com/twbs/icons.git RUN cd / && git clone https://github.com/thomaspark/bootswatch.git COPY . /src 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 \ && mkdir -p /app/css/bootswatch/dist \ && mkdir -p /app/css/bootstrap-icons/font COPY --from=builder /WatchYourLAN /app/ COPY --from=builder /icons/font /app/css/bootstrap-icons/font COPY --from=builder /bootswatch/dist /app/css/bootswatch/dist ENTRYPOINT ["./WatchYourLAN"] CMD ["-b", "/app/css"]