blob: 8d561c21ec1c602f5da745aafaa4e9b0ad3f9a70 [file] [log] [blame]
# -------------
# 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/