dockerfile update #2

This commit is contained in:
Hendrik Schlehlein 2019-01-31 16:28:38 +00:00
parent 1441b942a9
commit 5012872895

View file

@ -16,7 +16,7 @@ COPY . .
RUN go get -d -v RUN go get -d -v
# Build the binary. # Build the binary.
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags="-w -s" -o /go/bin/main RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /go/bin/main
############################ ############################
# STEP 2 build a small image # STEP 2 build a small image