feat: dockerfile

This commit is contained in:
Mikaël Cluseau 2018-06-19 17:49:34 +11:00
parent f95c495a92
commit 6090d31e2c

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
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/