2018-11-13 03:44:15 +00:00
|
|
|
# ------------------------------------------------------------------------
|
2023-11-07 14:13:29 +00:00
|
|
|
from golang:1.21.3-bullseye as build
|
|
|
|
run apt-get update && apt-get install -y git
|
|
|
|
workdir /src
|
|
|
|
copy go.mod go.sum ./
|
|
|
|
run go mod download
|
|
|
|
copy . ./
|
|
|
|
run go test ./...
|
|
|
|
run hack/build ./...
|
2018-06-19 06:49:34 +00:00
|
|
|
|
2018-11-13 03:44:15 +00:00
|
|
|
# ------------------------------------------------------------------------
|
2023-05-15 17:34:51 +00:00
|
|
|
from debian:bullseye
|
2018-11-13 03:44:15 +00:00
|
|
|
entrypoint ["/bin/dkl-local-server"]
|
2018-06-19 06:49:34 +00:00
|
|
|
|
2019-10-19 04:08:41 +00:00
|
|
|
env _uncache 1
|
2018-06-19 06:49:34 +00:00
|
|
|
run apt-get update \
|
2023-11-07 14:13:29 +00:00
|
|
|
&& yes |apt-get install -y genisoimage gdisk dosfstools util-linux udev binutils systemd \
|
|
|
|
grub2 grub-pc-bin grub-efi-amd64-bin ca-certificates curl openssh-client \
|
2018-11-13 03:44:15 +00:00
|
|
|
&& apt-get clean
|
|
|
|
|
2023-11-07 14:13:29 +00:00
|
|
|
copy --from=build /src/dist/ /bin/
|