CICD preparation

This commit is contained in:
2025-11-19 01:29:36 +03:00
parent 33e49e1a00
commit 444d7cdfff
5 changed files with 183 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM golang:1.24.9-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o service ./src
FROM gcr.io/distroless/static
WORKDIR /
COPY --from=builder /app/service .
ENTRYPOINT [ "/service"]