Allow easy configuration of root import path in Dockerfile.
parent
8bf9768182
commit
8cd70b50de
|
@ -3,10 +3,11 @@ FROM golang:1.10
|
||||||
RUN mkdir -p /go/src/app
|
RUN mkdir -p /go/src/app
|
||||||
WORKDIR /go/src/app
|
WORKDIR /go/src/app
|
||||||
|
|
||||||
|
ARG ROOT_IMPORT_PATH=github.com/icedream/embot
|
||||||
COPY . /go/src/app
|
COPY . /go/src/app
|
||||||
RUN \
|
RUN \
|
||||||
mkdir -p "$GOPATH/src/github.com/icedream" &&\
|
mkdir -p "$GOPATH/src/$(dirname "$ROOT_IMPORT_PATH")" &&\
|
||||||
ln -sf /go/src/app "$GOPATH/src/github.com/icedream/embot" &&\
|
ln -sf /go/src/app "$GOPATH/src/$ROOT_IMPORT_PATH" &&\
|
||||||
go-wrapper download &&\
|
go-wrapper download &&\
|
||||||
go-wrapper install
|
go-wrapper install
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue