|
|
@@ -10,8 +10,7 @@ RUN set -x \
|
|
10
|
10
|
curl \
|
|
11
|
11
|
git \
|
|
12
|
12
|
make \
|
|
13
|
|
- upx \
|
|
14
|
|
- && update-ca-certificates
|
|
|
13
|
+ upx
|
|
15
|
14
|
|
|
16
|
15
|
COPY . /go/src/github.com/9seconds/mtg/
|
|
17
|
16
|
|
|
|
@@ -26,7 +25,7 @@ RUN set -x \
|
|
26
|
25
|
|
|
27
|
26
|
FROM scratch
|
|
28
|
27
|
|
|
29
|
|
-ENTRYPOINT ["/usr/local/bin/mtg"]
|
|
|
28
|
+ENTRYPOINT ["/mtg"]
|
|
30
|
29
|
ENV MTG_IP=0.0.0.0 \
|
|
31
|
30
|
MTG_PORT=3128 \
|
|
32
|
31
|
MTG_STATS_IP=0.0.0.0 \
|
|
|
@@ -34,4 +33,4 @@ ENV MTG_IP=0.0.0.0 \
|
|
34
|
33
|
EXPOSE 3128 3129
|
|
35
|
34
|
|
|
36
|
35
|
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
37
|
|
-COPY --from=0 /go/src/github.com/9seconds/mtg/mtg /usr/local/bin/mtg
|
|
|
36
|
+COPY --from=0 /go/src/github.com/9seconds/mtg/mtg /mtg
|