0
0
mirror of https://github.com/hufrea/byedpi.git synced 2025-08-22 11:18:39 +00:00

Add docker build files

This is a simple two-stage static build with the final image built from scratch.
This commit is contained in:
magras 2025-07-06 20:53:42 +03:00 committed by hufrea
parent 4cbd0bc758
commit 7fb76848b2
2 changed files with 10 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
.git

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
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"]