2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-10 13:10:26 +00:00

Merge branch 'maciejaszek-docker'

This commit is contained in:
Miguel Mota 2021-01-31 20:37:45 -08:00
commit 0f7c22be6a

View File

@ -1,4 +1,4 @@
FROM golang:1.14 FROM golang:1.15 as build
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app
@ -6,8 +6,12 @@ ARG VERSION
ADD . /app/ ADD . /app/
RUN go build -ldflags=-s -ldflags=-w -ldflags=-X=github.com/miguelmota/cointop/cointop.version=$VERSION -o main . RUN go build -ldflags=-s -ldflags=-w -ldflags=-X=github.com/miguelmota/cointop/cointop.version=$VERSION -o main .
RUN mv main /bin/cointop RUN git clone https://github.com/cointop-sh/colors && rm -Rf colors/.git*
RUN git clone https://github.com/cointop-sh/colors ~/.config/cointop/colors
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
ENTRYPOINT cointop ENTRYPOINT cointop
CMD [] CMD []