diff --git a/src/KubeOps.Cli/Generators/DockerfileGenerator.cs b/src/KubeOps.Cli/Generators/DockerfileGenerator.cs index c20e725e..dcaa5fc7 100644 --- a/src/KubeOps.Cli/Generators/DockerfileGenerator.cs +++ b/src/KubeOps.Cli/Generators/DockerfileGenerator.cs @@ -25,8 +25,7 @@ COPY ./ ./ RUN addgroup k8s-operator && useradd -G k8s-operator operator-user WORKDIR /operator - COPY --from=build /operator/out/ ./ - RUN chown operator-user:k8s-operator -R . + COPY --chown=operator-user:k8s-operator --from=build /operator/out/ ./ USER operator-user