local-server/Dockerfile

24 lines
765 B
Docker
Raw Normal View History

2018-11-13 14:44:15 +11:00
# ------------------------------------------------------------------------
2020-04-22 17:36:04 +02:00
from mcluseau/golang-builder:1.14.1 as build
2018-06-19 17:49:34 +11:00
2018-11-13 14:44:15 +11:00
# ------------------------------------------------------------------------
from debian:stretch
entrypoint ["/bin/dkl-local-server"]
2018-06-19 17:49:34 +11:00
2019-10-19 15:08:41 +11:00
env _uncache 1
2018-06-19 17:49:34 +11:00
run apt-get update \
2018-11-13 14:44:15 +11:00
&& apt-get install -y genisoimage gdisk dosfstools util-linux udev \
&& apt-get clean
2019-02-14 11:24:14 +11:00
run yes |apt-get install -y grub2 grub-pc-bin grub-efi-amd64-bin \
&& apt-get clean
2019-12-03 11:03:20 +01:00
run apt-get install -y ca-certificates curl openssh-client \
2019-04-12 17:17:49 +01:00
&& apt-get clean
run curl -L https://github.com/vmware/govmomi/releases/download/v0.21.0/govc_linux_amd64.gz | gunzip > /bin/govc && chmod +x /bin/govc
copy upload-vmware.sh govc.env /var/lib/direktil/
2018-11-13 14:44:15 +11:00
copy --from=build /go/bin/ /bin/