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:
@@ -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 . .
|
||||
|
||||
Reference in New Issue
Block a user