Skip to content

Commit 15c3462

Browse files
authored
fix: dockerfile (#2)
1 parent 54b1f4a commit 15c3462

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN apk upgrade && apk add --no-cache bash curl
2525
RUN addgroup -g 1001 app
2626
RUN adduser -D -G app -u 1001 app
2727

28-
COPY --from=builder /go/src/app/build/cosmos-validator-watcher /
28+
COPY --from=builder /go/src/app/build/near-validator-watcher /
2929

3030
WORKDIR /
3131
ENTRYPOINT ["/near-validator-watcher"]

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kilnfi/near-validator-watcher
22

3-
go 1.18
3+
go 1.20
44

55
require (
66
github.com/avast/retry-go/v4 v4.5.0

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77

88
"github.com/kilnfi/near-validator-watcher/pkg/app"
9-
"github.com/rs/zerolog/log"
9+
"github.com/sirupsen/logrus"
1010
"github.com/urfave/cli/v2"
1111
)
1212

@@ -22,6 +22,6 @@ func main() {
2222
}
2323

2424
if err := app.Run(os.Args); err != nil && !errors.Is(err, context.Canceled) {
25-
log.Error().Err(err).Msg("")
25+
logrus.WithError(err).Fatal("application failed")
2626
}
2727
}

0 commit comments

Comments
 (0)