diff --git a/Dockerfile b/Dockerfile index 37f1c88..1043322 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23-alpine AS build +FROM golang:1.26-alpine AS build WORKDIR /src COPY go.mod ./ COPY cmd ./cmd @@ -7,7 +7,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/glpi-ai # One-shot helper used by docker compose to prepare the persistent volume for # the distroless non-root runtime user (UID/GID 65532). -FROM golang:1.23-alpine AS data-init +FROM golang:1.26-alpine AS data-init ENTRYPOINT ["sh", "-c", "mkdir -p /app/data && chown -R 65532:65532 /app/data && chmod 0750 /app/data"] FROM gcr.io/distroless/static-debian12:nonroot diff --git a/go.mod b/go.mod index 334dce7..1983a6a 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/example/glpi-ai-agent -go 1.23 +go 1.26