Make the clam-rest container tiny
This commit is contained in:
parent
51a5e39610
commit
d6a9b30ea1
3 changed files with 7 additions and 8 deletions
1
Makefile
1
Makefile
|
@ -6,6 +6,7 @@ run-container: .clamav build-container
|
|||
@docker run -d -p 9000:9000 -e PORT=9000 --name $(SERVICE) --link clamd:clamd $(SERVICE):$(VERSION)
|
||||
|
||||
build-container:
|
||||
docker run --rm -t -i -v $(shell pwd):/go/src/github.com/osterzel/clamrest -v $(shell pwd)/target:/go/bin golang:1.3 /bin/bash -c "/go/src/github.com/osterzel/clamrest/scripts/build-static-binary"
|
||||
docker build -t $(SERVICE):$(VERSION) .
|
||||
|
||||
run-slug: .clamav build-slug
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue