|
|
@@ -13,11 +13,17 @@ RUN set -x \
|
|
13
|
13
|
upx \
|
|
14
|
14
|
&& update-ca-certificates
|
|
15
|
15
|
|
|
16
|
|
-ADD . /go/src/github.com/9seconds/mtg
|
|
|
16
|
+COPY Gopkg.toml Gopkg.lock Makefile /go/src/github.com/9seconds/mtg/
|
|
|
17
|
+
|
|
|
18
|
+RUN set -x && \
|
|
|
19
|
+ cd /go/src/github.com/9seconds/mtg && \
|
|
|
20
|
+ make -j 4 prepare && \
|
|
|
21
|
+ make vendor
|
|
|
22
|
+
|
|
|
23
|
+COPY . /go/src/github.com/9seconds/mtg
|
|
17
|
24
|
|
|
18
|
25
|
RUN set -x \
|
|
19
|
26
|
&& cd /go/src/github.com/9seconds/mtg \
|
|
20
|
|
- && make clean \
|
|
21
|
27
|
&& make -j 4 static \
|
|
22
|
28
|
&& upx --ultra-brute -qq ./mtg
|
|
23
|
29
|
|