byedpi/Dockerfile
magras 7fb76848b2 Add docker build files
This is a simple two-stage static build with the final image built from scratch.
2025-07-13 20:49:14 +03:00

10 lines
247 B
Docker

FROM docker.io/alpine AS build
RUN apk add --no-cache build-base linux-headers
WORKDIR /usr/local/src/byedpi
COPY . .
RUN LDFLAGS=-static make
FROM scratch AS ciadpi
COPY --from=build /usr/local/src/byedpi/ciadpi /bin/
ENTRYPOINT ["/bin/ciadpi"]