Skip to content

Commit cc93c88

Browse files
committed
add build flags
1 parent b4af051 commit cc93c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WORKDIR /go/src/cloudkms-encryption
77
COPY . /go/src/cloudkms-encryption
88
ENV GO111MODULE=on
99
RUN go mod download
10-
RUN CGO_ENABLED=0 GOOS=linux go build -o /go/bin/cloudkms-encryption
10+
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-w -extldflags "-static"' -o /go/bin/cloudkms-encryption
1111

1212
#without these certificates, we cannot verify the JWT token
1313
FROM alpine:latest as certs

0 commit comments

Comments
 (0)