dockerfile update #2
This commit is contained in:
parent
1441b942a9
commit
5012872895
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ COPY . .
|
|||
RUN go get -d -v
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue