Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from securityscorecard/mwolny/dockerfile
Browse files Browse the repository at this point in the history
Initial Dockerfile
  • Loading branch information
tyuio9 authored Apr 26, 2018
2 parents 60da0bf + e3055ae commit 8842c94
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git/
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:1.9.5 AS builder

WORKDIR /go/src/github.com/securityscorecard/vault-vouch
ADD . .

ENV CGO_ENABLED=0

RUN go get -v github.com/Masterminds/glide && \
glide install && \
go build -o /vault-vouch -v -a -tags netgo -ldflags="-s -w"

FROM scratch

WORKDIR /

COPY --from=builder /vault-vouch .

ENTRYPOINT ["/vault-vouch"]
CMD ["-h"]

0 comments on commit 8842c94

Please sign in to comment.