local-server/Dockerfile

17 lines
360 B
Docker
Raw Normal View History

2018-07-07 01:30:03 +00:00
from golang:1.10.3 as build
2018-06-19 06:49:34 +00:00
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/