Prepare docker build
This commit is contained in:
parent
c3dca29264
commit
135122cd68
2 changed files with 13 additions and 2 deletions
3
.dockerignore
Normal file
3
.dockerignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
vendor
|
||||
.git
|
||||
_gx_private
|
|
@ -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 ./...
|
||||
|
|
Loading…
Reference in a new issue