local-server/Dockerfile

24 lines
750 B
Docker
Raw Normal View History

2018-11-13 03:44:15 +00:00
# ------------------------------------------------------------------------
2019-11-26 12:58:50 +00:00
from mcluseau/golang-builder:1.13.4 as build
2018-06-19 06:49:34 +00:00
2018-11-13 03:44:15 +00:00
# ------------------------------------------------------------------------
from debian:stretch
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 \
2018-11-13 03:44:15 +00:00
&& apt-get install -y genisoimage gdisk dosfstools util-linux udev \
&& apt-get clean
2019-02-14 00:24:14 +00:00
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 \
2019-04-12 16:17:49 +00: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 03:44:15 +00:00
copy --from=build /go/bin/ /bin/