Skip to content

Commit

Permalink
Merge pull request #11 from packrat386/add_dockerfile
Browse files Browse the repository at this point in the history
Add Dockerfile
  • Loading branch information
sshao authored Nov 16, 2020
2 parents 2a05eee + 1d0a836 commit b56118a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:latest as builder

WORKDIR /
COPY . .
RUN go get -d -v ./...
RUN CGO_ENABLED=0 GOOS=linux go build -a -o /go/bin/scout

FROM alpine:latest
RUN apk --no-cache add ca-certificates tzdata
COPY --from=builder /go/bin/scout /usr/local/bin

CMD ["scout", "-h"]

0 comments on commit b56118a

Please # to comment.