Update Dockerfile

pull/58/head v1.5.1
Miguel Mota 4 years ago
parent b761ac0d55
commit 6f40702825

@ -2,9 +2,10 @@ FROM golang:1.14
RUN mkdir /app
WORKDIR /app
ARG VERSION
ADD . /app/
RUN go build -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
ENTRYPOINT cointop

@ -188,7 +188,7 @@ release:
VERSION=$(VERSION) goreleaser
docker-build:
docker build -t cointop/cointop .
docker build --build-arg VERSION=$(VERSION) -t cointop/cointop .
docker-run:
docker run -it cointop/cointop

@ -55,7 +55,7 @@ func (ct *Cointop) UpdateStatusbar(s string) error {
base := fmt.Sprintf("%s%s %sHelp %sChart %sRange %sSearch %sConvert %s %s %sSave", "[Q]", quitText, "[?]", "[Enter]", "[[ ]]", "[/]", "[C]", favoritesText, portfolioText, "[CTRL-S]")
str := pad.Right(fmt.Sprintf("%v %sPage %v/%v %s", base, "[← →]", currpage, totalpages, s), ct.maxTableWidth, " ")
v := fmt.Sprintf("v%s", ct.Version())
v := fmt.Sprintf("%s", ct.Version())
end := len(str) - len(v) + 2
if end > len(str) {
end = len(str)

Loading…
Cancel
Save