Skip to content

Commit

Permalink
feat: add Dockerfile for building and running saveany-bot
Browse files Browse the repository at this point in the history
  • Loading branch information
krau committed Jan 20, 2025
1 parent a778b0f commit cd663d0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:alpine AS builder

WORKDIR /app

COPY go.* ./
RUN go mod download

COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build -o saveany-bot .

FROM alpine:latest

WORKDIR /app

COPY --from=builder /app/saveany-bot .

CMD ["./saveany-bot"]

0 comments on commit cd663d0

Please sign in to comment.