local-server/Dockerfile
2023-05-15 19:34:51 +02:00

24 lines
788 B
Docker

# ------------------------------------------------------------------------
from mcluseau/golang-builder:1.20.4 as build
# ------------------------------------------------------------------------
from debian:bullseye
entrypoint ["/bin/dkl-local-server"]
env _uncache 1
run apt-get update \
&& apt-get install -y genisoimage gdisk dosfstools util-linux udev binutils systemd \
&& apt-get clean
run yes |apt-get install -y grub2 grub-pc-bin grub-efi-amd64-bin \
&& apt-get clean
run apt-get install -y ca-certificates curl openssh-client \
&& apt-get clean
run curl -L https://github.com/vmware/govmomi/releases/download/v0.30.4/govc_Linux_x86_64.tar.gz | gunzip > /bin/govc && chmod +x /bin/govc
copy upload-vmware.sh govc.env /var/lib/direktil/
copy --from=build /go/bin/ /bin/