diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..df90999 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +vendor +.git +_gx_private diff --git a/docker/Dockerfile b/docker/Dockerfile index 2999408..e431c69 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -3,8 +3,16 @@ ## FROM golang:1.11 AS build -# git clone https://github.com/glenux/trello2mail /app -COPY . /app +RUN git clone \ + --single-branch \ + --branch develop \ + https://github.com/glenux/trello2mail \ + /app \ + && git clone \ + https://github.com/glenux/contrib-trello \ + /app/contrib-trello + +# COPY . /app WORKDIR /app RUN CGO_ENABLED=0 go build -v ./...