Minor changes in dockerfile

This commit is contained in:
9seconds
2018-10-12 10:50:52 +03:00
parent cf9bf56d8e
commit 7128e70e50
+3 -4
View File
@@ -10,8 +10,7 @@ RUN set -x \
curl \ curl \
git \ git \
make \ make \
upx \ upx
&& update-ca-certificates
COPY . /go/src/github.com/9seconds/mtg/ COPY . /go/src/github.com/9seconds/mtg/
@@ -26,7 +25,7 @@ RUN set -x \
FROM scratch FROM scratch
ENTRYPOINT ["/usr/local/bin/mtg"] ENTRYPOINT ["/mtg"]
ENV MTG_IP=0.0.0.0 \ ENV MTG_IP=0.0.0.0 \
MTG_PORT=3128 \ MTG_PORT=3128 \
MTG_STATS_IP=0.0.0.0 \ MTG_STATS_IP=0.0.0.0 \
@@ -34,4 +33,4 @@ ENV MTG_IP=0.0.0.0 \
EXPOSE 3128 3129 EXPOSE 3128 3129
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=0 /go/src/github.com/9seconds/mtg/mtg /usr/local/bin/mtg COPY --from=0 /go/src/github.com/9seconds/mtg/mtg /mtg