From 883a119cc209b48c8c15b0f378fe21940f201a2d Mon Sep 17 00:00:00 2001 From: afh Date: Sun, 18 Apr 2021 10:36:13 +0200 Subject: [PATCH] Dockerfile: Use colors tar.gz archive instead of cloning colors repo. --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b00cfc3..cdff1eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,13 @@ ARG VERSION COPY . ./ RUN go build -ldflags=-s -ldflags=-w -ldflags=-X=github.com/miguelmota/cointop/cointop.version=$VERSION -o main . -RUN git clone https://github.com/cointop-sh/colors && rm -Rf colors/.git* +ADD https://github.com/cointop-sh/colors/archive/master.tar.gz ./ +RUN tar zxf master.tar.gz --exclude images FROM busybox:glibc RUN mkdir -p /etc/ssl COPY --from=build /etc/ssl/certs/ /etc/ssl/certs COPY --from=build /app/main /bin/cointop -COPY --from=build /app/colors /root/.config/cointop/colors +COPY --from=build /app/colors-master /root/.config/cointop/colors ENTRYPOINT ["/bin/cointop"] CMD []