Skip to content

Commit

Permalink
Dockerfile: switch from dep to go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ploxiln committed Aug 28, 2019
1 parent f00966c commit 1633454
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ COPY . /go/src/github.com/nsqio/nsq

WORKDIR /go/src/github.com/nsqio/nsq

RUN wget -O /bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 \
&& chmod +x /bin/dep \
&& /bin/dep ensure \
RUN export GO111MODULE=on \
&& ./test.sh \
&& CGO_ENABLED=0 make DESTDIR=/opt PREFIX=/nsq BLDFLAGS='-ldflags="-s -w"' install

Expand Down

0 comments on commit 1633454

Please sign in to comment.