diff options
| author | Niall Sheridan <nsheridan@gmail.com> | 2019-07-03 15:31:38 +0100 | 
|---|---|---|
| committer | Niall Sheridan <nsheridan@gmail.com> | 2019-07-03 15:40:38 +0100 | 
| commit | 0bd454cc448b812da6c693b451d86ff4cadbb6b2 (patch) | |
| tree | e6dfcf2f9c1ea5febd42eab84a5abd759556c22b | |
| parent | c5ec176a1cfba4f170991ca7bf6296185b10f565 (diff) | |
Use the static container image
This includes ca-certs in the docker image
Fixes #82
| -rw-r--r-- | .travis.yml | 1 | ||||
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | Makefile | 4 | 
3 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 50ddc92..9f3251d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ env:    - SUITE=test  go: +  - 1.12.x    - 1.11.x    - 1.10.x    - tip @@ -5,7 +5,7 @@ WORKDIR ${SRC_DIR}  ADD . ${SRC_DIR}  RUN CGO_ENABLED=0 GOOS=linux make install-cashierd -FROM scratch +FROM gcr.io/distroless/static  LABEL maintainer="nsheridan@gmail.com"  WORKDIR /cashier  COPY --from=build /go/bin/cashierd / @@ -24,13 +24,13 @@ lint: dep  build: cashier cashierd  generate: -	go generate -x ./... +	go generate ./...  %-cmd:  	CGO_ENABLED=$(CGO_ENABLED) GOARCH=$(GOARCH) GOOS=$(GOOS) go build -ldflags="-X $(VERSION_PKG)=$(VERSION)" -o $* ./cmd/$*  install-%: generate -	CGO_ENABLED=$(CGO_ENABLED) GOARCH=$(GOARCH) GOOS=$(GOOS) go install -x -ldflags="-X $(VERSION_PKG)=$(VERSION)" ./cmd/$* +	CGO_ENABLED=$(CGO_ENABLED) GOARCH=$(GOARCH) GOOS=$(GOOS) go install -ldflags="-X $(VERSION_PKG)=$(VERSION)" ./cmd/$*  clean:  	rm -f cashier cashierd  | 
