| ADD rw_core $GOPATH/src/github.com/opencord/voltha-go/rw_core |
| ADD common $GOPATH/src/github.com/opencord/voltha-go/common |
| ADD db $GOPATH/src/github.com/opencord/voltha-go/db |
| ADD kafka $GOPATH/src/github.com/opencord/voltha-go/kafka |
| ADD afrouter $GOPATH/src/github.com/opencord/voltha-go/afrouter |
| ADD arouterd $GOPATH/src/github.com/opencord/voltha-go/arouterd |
| # Copy required proto files |
| # Repeate here even if done in base file |
| ADD protos/*.proto /src/protos/ |
| ADD protos/scripts/* /src/protos/ |
| ADD afrouter/arouter.json /src |
| # Copy generated executables here |
| WORKDIR $GOPATH/src/github.com/opencord/voltha-go |
| # Repeate here even if done in base file |
| RUN sh /src/protos/build_protos.sh /src/protos |
| RUN cd arouterd && go build -o /src/arouterd |
| # Set the working directory |
| COPY --from=build-env /src/arouterd /app/ |