| # ------------- | |
| # Build stage | |
| FROM base AS build-env | |
| WORKDIR $GOPATH/src/github.com/opencord/voltha-go | |
| # Copy files. | |
| COPY ro_core ./ro_core | |
| # Build | |
| RUN cd ro_core && go build -o /build/ro_core | |
| # ------------- | |
| # Image creation stage | |
| FROM alpine:3.9 | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy required files | |
| COPY --from=build-env /build/ro_core /app/ | |