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