blob: f4bb80c20370b82fca59a0b24dd1c632a0e1abd2 [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/
ENTRYPOINT ["/app/ro_core"]