summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: e7bb4a712f9301f83f1cc0459ecc8be08acdf76b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM golang:1.24-alpine AS build

WORKDIR /src

COPY go.mod go.sum ./
RUN go mod download

COPY . .
RUN CGO_ENABLED=0 go build -trimpath -ldflags '-s -w' -o /out/cepis-telegram .

FROM gcr.io/distroless/static-debian12:nonroot

COPY --from=build /out/cepis-telegram /cepis-telegram

USER nonroot:nonroot
ENTRYPOINT ["/cepis-telegram"]