mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 11:44:02 +03:00
Optimize dockerfile
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
version.go
|
||||
vendor/
|
||||
tags
|
||||
+8
-2
@@ -13,11 +13,17 @@ RUN set -x \
|
||||
upx \
|
||||
&& update-ca-certificates
|
||||
|
||||
ADD . /go/src/github.com/9seconds/mtg
|
||||
COPY Gopkg.toml Gopkg.lock Makefile /go/src/github.com/9seconds/mtg/
|
||||
|
||||
RUN set -x && \
|
||||
cd /go/src/github.com/9seconds/mtg && \
|
||||
make -j 4 prepare && \
|
||||
make vendor
|
||||
|
||||
COPY . /go/src/github.com/9seconds/mtg
|
||||
|
||||
RUN set -x \
|
||||
&& cd /go/src/github.com/9seconds/mtg \
|
||||
&& make clean \
|
||||
&& make -j 4 static \
|
||||
&& upx --ultra-brute -qq ./mtg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user