Init Commit
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
FROM golang:1.22-alpine AS builder
|
||||
WORKDIR /src
|
||||
|
||||
COPY go.mod ./
|
||||
COPY main.go ./
|
||||
RUN go mod download
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o /out/telemt-bot .
|
||||
|
||||
FROM gcr.io/distroless/static-debian12:nonroot
|
||||
WORKDIR /app
|
||||
COPY --from=builder /out/telemt-bot /app/telemt-bot
|
||||
|
||||
ENV TELEGRAM_HTTP_TIMEOUT_SECONDS=60
|
||||
ENV TELEMT_HTTP_TIMEOUT_SECONDS=5
|
||||
|
||||
ENTRYPOINT ["/app/telemt-bot"]
|
||||
Reference in New Issue
Block a user