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:
parent
4cbd0bc758
commit
7fb76848b2
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
.git
|
9
Dockerfile
Normal file
9
Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user