blob: ca83f1327f74dcea139cca73e54112019e54a31e [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/