Files
tiennm99 ff913539bd feat: initial db-keepalive — pluggable adapters for 6 free-tier DBs
Consolidates the *-keepalive family (redis, valkey, postgresql, mysql,
mongodb, couchbase) into a single binary with a runtime DB_TYPE dispatch
and an Adapter interface. Original repos archived with a pointer here.
2026-05-11 20:15:35 +07:00

12 lines
312 B
Docker

FROM golang:1.23-alpine AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /out/db-keepalive .
FROM gcr.io/distroless/static-debian12:nonroot
COPY --from=build /out/db-keepalive /db-keepalive
USER nonroot:nonroot
ENTRYPOINT ["/db-keepalive"]