-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows users to run ipxedust in a container. Signed-off-by: Jacob Weinstock <[email protected]>
- Loading branch information
1 parent
7548eaf
commit 5bc6e25
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM golang:1.17.5 as builder | ||
|
||
WORKDIR /code | ||
COPY go.mod go.sum /code/ | ||
RUN go mod download | ||
|
||
COPY . /code | ||
RUN CGO_ENABLED=0 make build | ||
|
||
FROM scratch | ||
|
||
COPY --from=builder /code/bin/ipxedust-linux /ipxedust-linux | ||
EXPOSE 69/udp | ||
EXPOSE 8080/tcp | ||
ENV IPXE_TFTP_SINGLE_PORT=TRUE | ||
|
||
ENTRYPOINT ["/ipxedust-linux"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters