From b120a3ec3fc59b2fc58e793254b0cc4ab1496fbe Mon Sep 17 00:00:00 2001 From: Amber Wiens Date: Wed, 9 Aug 2017 13:00:19 -0600 Subject: [PATCH] Updating Dockerfile with requested changes --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a1aa448..7fea92c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,21 @@ -# Builds the Gas scanner with 'docker build' command, and runs Gas on all Go -# files in your current directory with 'docker run' command. -# # Docker version must be 17.05 or higher to allow multistage build -# +# See build and run instructions in README.md +# Builds Gas for utilization FROM golang:1.8.1-alpine as builder ENV workspace /go/src/github.com/GoASTScanner/gas +ENV GOPATH /go COPY . $workspace WORKDIR $workspace RUN go vet $(go list ./... | grep -v /vendor/) RUN CGO_ENABLED=0 go build -o gas . -FROM alpine:3.6 +######################################################## -LABEL MAINTAINER="David Graves " +# Runs Gas on all Go files in the current directory when +# 'docker run' command in README is given +FROM alpine:3.6 COPY --from=builder /go/src/github.com/GoASTScanner/gas/gas /