blob: 23c4ccb4829e92d3f7926bc387cdca06589ebb64 [file] [log] [blame]
# -------------
# Build stage
FROM base AS build-env
WORKDIR $GOPATH/src/github.com/opencord/voltha-go
# Copy files
COPY rw_core ./rw_core
# Build
RUN cd rw_core && go build -o /build/rw_core
# -------------
# Image creation stage
FROM alpine:3.9
# Set the working directory
WORKDIR /app
# Copy required files
COPY --from=build-env /build/rw_core /app/
ENTRYPOINT ["/app/rw_core"]