local-server/Dockerfile
2018-06-19 17:49:34 +11:00

17 lines
360 B
Docker

from golang:1.10.2 as build
env pkg novit.nc/direktil/local-server
add . /go/src/${pkg}
workdir /go/src/${pkg}
run go vet ./... \
&& go test ./... \
&& go install .
from debian:stable
entrypoint ["/bin/local-server"]
run apt-get update \
&& apt-get install -y genisoimage grub grub-pc-bin \
&& apt-get clean
copy --from=build /go/bin/local-server /bin/