Skip to content

Commit

Permalink
Merge pull request #16 from linkernetworks/phstsai/dockerfile-govendor
Browse files Browse the repository at this point in the history
BUGFIX Phstsai/dockerfile govendor
  • Loading branch information
John-Lin authored Jun 20, 2018
2 parents c21dc4a + 1799971 commit 147e587
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ WORKDIR /go/src/github.com/linkernetworks/vortex
RUN apk add --no-cache protobuf ca-certificates git

# TODO fix path after move out
COPY . /go/src/github.com/linkernetworks/vortex/src
COPY src /go/src/github.com/linkernetworks/vortex/src
COPY Makefile /go/src/github.com/linkernetworks/vortex
COPY vendor /go/src/github.com/linkernetworks/vortex/vendor

ENV CGO_ENABLED 0
ENV GOOS linux
Expand All @@ -18,6 +19,8 @@ RUN apk add --no-cache tzdata && \
echo $TIMEZONE > /etc/timezone && \
apk del tzdata
# TODO test go install
RUN go get -x -u github.com/kardianos/govendor
RUN govendor sync
RUN go install ./src/cmd/...

# the final image: vortex
Expand Down

0 comments on commit 147e587

Please sign in to comment.