This is an automated email from the ASF dual-hosted git repository.

wangyang0918 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new cf8f99b  [FLINK-27746] Flink kubernetes operator docker image could 
not build with source release
cf8f99b is described below

commit cf8f99b2c7cd61828ce94228d1b6b31c235d4cb8
Author: SteNicholas <[email protected]>
AuthorDate: Tue May 24 23:11:18 2022 +0800

    [FLINK-27746] Flink kubernetes operator docker image could not build with 
source release
---
 Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 41a6d71..dd7d7d2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -36,7 +36,8 @@ COPY $DOCS_DIR/pom.xml ./$DOCS_DIR/
 COPY $OPERATOR_DIR/src ./$OPERATOR_DIR/src
 COPY $WEBHOOK_DIR/src ./$WEBHOOK_DIR/src
 
-COPY .git ./.git
+# Copy the .git directory when the directory exists.
+COPY *.git ./.git
 COPY tools ./tools
 
 RUN --mount=type=cache,target=/root/.m2 mvn -ntp clean install -pl 
!flink-kubernetes-docs -DskipTests=$SKIP_TESTS

Reply via email to