Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
[1/2] STEP 16/19: COPY *.git ./.git
Error: error building at STEP "COPY *.git ./.git": checking on sources under "/root/FLINK/release-1.0-rc2/flink-kubernetes-operator-1.0.0": Rel: can't make relative to /root/FLINK/release-1.0-rc2/flink-kubernetes-operator-1.0.0; copier: stat: ["/*.git"]: no such file or directory
podman version
Client: Podman Engine
Version: 4.0.2
API Version: 4.0.2
I think the root cause is "*.git" is not respected by podman. Maybe we could simply copy the whole directory when building the image.
WORKDIR /app COPY . . RUN --mount=type=cache,target=/root/.m2 mvn -ntp clean install -pl !flink-kubernetes-docs -DskipTests=$SKIP_TESTS
Attachments
Issue Links
- links to