Revert "Make the clam-rest container tiny"

This reverts commit d6a9b30ea1.
This commit is contained in:
Oliver Sterzel 2016-06-26 23:32:26 +01:00
parent d6a9b30ea1
commit f2620bb98c
3 changed files with 8 additions and 7 deletions

View file

@ -1,7 +1,12 @@
FROM scratch
FROM golang:1.3
ADD target/clamrest /
ADD . /go/src/github.com/osterzel/clamrest
CMD ["/clamrest"]
WORKDIR /go/src/github.com/osterzel/clamrest
RUN go get
RUN go install github.com/osterzel/clamrest
RUN rm -rf /go/src/github.com/osterzel/clamrest
ENTRYPOINT /go/bin/clamrest
EXPOSE 8080

View file

@ -6,7 +6,6 @@ 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

View file

@ -1,3 +0,0 @@
cd /go/src/github.com/osterzel/clamrest
go get
CGO_ENABLED=0 GOOS=linux go install -a -installsuffix cgo