mirror of
https://github.com/aykhans/azal-bot.git
synced 2025-07-05 02:32:36 +00:00
🎉first commit
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM golang:1.22.6-alpine AS builder
|
||||
|
||||
WORKDIR /azalbot
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY main.go ./main.go
|
||||
|
||||
RUN go build -ldflags "-s -w" -o azal-bot
|
||||
|
||||
FROM gcr.io/distroless/static-debian12:latest
|
||||
|
||||
WORKDIR /azalbot
|
||||
|
||||
COPY --from=builder /azalbot/azal-bot /azalbot/azal-bot
|
||||
|
||||
ENTRYPOINT ["./azal-bot"]
|
Reference in New Issue
Block a user