mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
313 B
Docker
14 lines
313 B
Docker
FROM golang:1.14
|
|
|
|
RUN mkdir /app
|
|
WORKDIR /app
|
|
ARG VERSION
|
|
|
|
ADD . /app/
|
|
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 ~/.config/cointop/colors
|
|
|
|
ENTRYPOINT cointop
|
|
CMD []
|