Kaynağa Gözat

Use upx for image build

tags/0.9
9seconds 8 yıl önce
ebeveyn
işleme
0e7521b7e4
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3
    1
      Dockerfile

+ 3
- 1
Dockerfile Dosyayı Görüntüle

10
     curl \
10
     curl \
11
     git \
11
     git \
12
     make \
12
     make \
13
+    upx \
13
   && update-ca-certificates
14
   && update-ca-certificates
14
 
15
 
15
 ADD . /go/src/github.com/9seconds/mtg
16
 ADD . /go/src/github.com/9seconds/mtg
17
 RUN set -x \
18
 RUN set -x \
18
   && cd /go/src/github.com/9seconds/mtg \
19
   && cd /go/src/github.com/9seconds/mtg \
19
   && make clean \
20
   && make clean \
20
-  && make -j 4 static
21
+  && make -j 4 static \
22
+  && upx --ultra-brute -qq ./mtg
21
 
23
 
22
 
24
 
23
 ###############################################################################
25
 ###############################################################################

Loading…
İptal
Kaydet