blob: d07aacb2f2decdb04a1eea4e1022ad8dbb138f7b [file] [log] [blame]
# -------------
# Build stage
FROM golang:1.10-alpine3.9
# Install required packages
RUN apk add --no-cache wget git make build-base
# Prepare directory structure
RUN ["mkdir", "-p", "/build"]
RUN ["mkdir", "-p", "$GOPATH/src", "$GOPATH/pkg", "$GOPATH/bin"]
RUN ["mkdir", "-p", "$GOPATH/src/github.com/opencord/voltha-go"]
WORKDIR $GOPATH/src/github.com/opencord/voltha-go
# Copy common files.
COPY common ./common
COPY db ./db
COPY kafka ./kafka
COPY vendor ./vendor