Skip to content

Commit dd9a479

Browse files
committedJul 10, 2019
fix(build): don't build static in downstream images
1 parent eb59375 commit dd9a479

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed
 

‎Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY vendor vendor
1313
COPY cmd cmd
1414
COPY pkg pkg
1515
COPY Makefile go.mod go.sum ./
16-
RUN make static-rh
16+
RUN make build
1717

1818
# copy and build vendored grpc_health_probe
1919
RUN mkdir -p /go/src/github.com/grpc-ecosystem && \

‎Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ build: clean $(CMDS)
1313
static: extra_flags=-ldflags '-w -extldflags "-static"'
1414
static: build
1515

16-
static-rh: extra_flags=-ldflags '-w -extldflags "-Wl,-Bstatic -ldl -lc -lpthread -lcrypto -lz -static"'
17-
static-rh: build
18-
1916
unit:
2017
go test $(MOD_FLAGS) -count=1 --tags json1 -v -race ./pkg/...
2118

0 commit comments

Comments
 (0)
Please sign in to comment.