| 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 |
| # Copy required proto files |
| # Repeat here even if it's done in the base |
| 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 |
| # Repeat here even if it's done in the base |
| RUN sh /src/protos/build_protos.sh /src/protos |
| RUN cd afrouter && go build -o /src/afrouter |
| # Set the working directory |
| COPY --from=build-env /src/afrouter /app/ |
| COPY --from=build-env /src/arouter.json /app/ |
| COPY --from=build-env /src/protos/voltha.pb /app/ |
| #CMD cd /app && ./arouter -config config/arouter.voltha2.json |