-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
FROM ubuntu:22.04 | ||
FROM ubuntu:24.04 AS builder | ||
LABEL maintainer="Charlie Lewis <[email protected]>" | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
golang ca-certificates | ||
COPY . /go/src/dovesnap | ||
WORKDIR /go/src/dovesnap | ||
RUN go build -o /dovesnap . | ||
|
||
FROM ubuntu:24.04 | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
iptables dbus && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ethtool iproute2 openvswitch-common openvswitch-switch \ | ||
udhcpc ca-certificates golang && \ | ||
udhcpc golang && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
COPY . /go/src/dovesnap | ||
WORKDIR /go/src/dovesnap | ||
RUN go build -o / . | ||
WORKDIR / | ||
COPY --from=builder /dovesnap/ . | ||
COPY udhcpclog.sh /udhcpclog.sh | ||
ENTRYPOINT ["/dovesnap"] |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module dovesnap | ||
|
||
go 1.18 | ||
go 1.22 | ||
|
||
require ( | ||
github.com/docker/docker v27.3.1+incompatible | ||
|
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