feat: dockerfile
This commit is contained in:
parent
f95c495a92
commit
6090d31e2c
16
Dockerfile
Normal file
16
Dockerfile
Normal 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/
|
Loading…
Reference in New Issue
Block a user