Prepare docker build

This commit is contained in:
Glenn Y. Rolland 2019-09-04 09:06:05 +02:00
parent c3dca29264
commit 135122cd68
2 changed files with 13 additions and 2 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
vendor
.git
_gx_private

View File

@ -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 ./...