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

Former-commit-id: e06d53fc5ee8a93cba6c5788fbb850c970f89fd6 [formerly e06d53fc5ee8a93cba6c5788fbb850c970f89fd6 [formerly e71e80f]]
Former-commit-id: 47c2896f863162294c3aa2e99c59d1494e7313d5
Former-commit-id: 950c897
  • Loading branch information
John-Lin authored Jun 20, 2018
2 parents 5fb8dd2 + 789814f commit 501373b
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 501373b

Please sign in to comment.