blob: d07aacb2f2decdb04a1eea4e1022ad8dbb138f7b [file] [log] [blame]
sslobodr2fb98b82019-01-21 09:29:51 -05001# -------------
2# Build stage
3
Matt Jeanneret85ab5082019-04-01 11:29:20 -04004FROM golang:1.10-alpine3.9
sslobodr2fb98b82019-01-21 09:29:51 -05005
6# Install required packages
Matt Jeanneret85ab5082019-04-01 11:29:20 -04007RUN apk add --no-cache wget git make build-base
sslobodr2fb98b82019-01-21 09:29:51 -05008
9# Prepare directory structure
Matt Jeanneret85ab5082019-04-01 11:29:20 -040010RUN ["mkdir", "-p", "/build"]
sslobodr2fb98b82019-01-21 09:29:51 -050011RUN ["mkdir", "-p", "$GOPATH/src", "$GOPATH/pkg", "$GOPATH/bin"]
William Kurkiandaa6bb22019-03-07 12:26:28 -050012RUN ["mkdir", "-p", "$GOPATH/src/github.com/opencord/voltha-go"]
sslobodr2fb98b82019-01-21 09:29:51 -050013
sslobodr2fb98b82019-01-21 09:29:51 -050014WORKDIR $GOPATH/src/github.com/opencord/voltha-go
15
Matt Jeanneret85ab5082019-04-01 11:29:20 -040016# Copy common files.
17COPY common ./common
18COPY db ./db
19COPY kafka ./kafka
20COPY vendor ./vendor