Skip to content

Commit e946c9b

Browse files
committed
Dockerfile: use container /tmp dir for build
1 parent f580340 commit e946c9b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ RUN mkdir -p /go/src/github.com/nsqio/nsq
66
COPY . /go/src/github.com/nsqio/nsq
77
WORKDIR /go/src/github.com/nsqio/nsq
88

9-
RUN ./test.sh
10-
RUN CGO_ENABLED=0 make PREFIX=/opt/nsq BLDFLAGS='-ldflags="-s -w"' install
11-
9+
RUN CGO_ENABLED=0 make BLDDIR=/tmp/nsq PREFIX=/opt/nsq BLDFLAGS='-ldflags="-s -w"' install
1210

1311
FROM alpine:latest
1412

0 commit comments

Comments
 (0)