Fix container build workspace ownership

Allow the non-root Gradle builder to create project-local caches during reproducible image builds.
This commit is contained in:
Rocky
2026-08-16 15:07:51 +08:00
parent 3824d0f6c3
commit a17d058748
+1
View File
@@ -1,4 +1,5 @@
FROM gradle:9.6.1-jdk21-alpine AS build
RUN mkdir -p /workspace && chown gradle:gradle /workspace
WORKDIR /workspace
COPY --chown=gradle:gradle . .