Skip to content

Commit

Permalink
Merge pull request #2 from ComposableFi/dockerfile
Browse files Browse the repository at this point in the history
Dockerfile
  • Loading branch information
rjonczy authored Apr 17, 2024
2 parents 315d78e + dd79f72 commit 9bc5bd2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.21 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o cosmos-notifier .

FROM alpine:latest AS runner
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/cosmos-notifier /cosmos-notifier

CMD ["/cosmos-notifier"]

0 comments on commit 9bc5bd2

Please sign in to comment.