Hello
I installed Docker desktop app on my Mac. I can run the Hello-World (Sign in | Docker Docs) program successfully. But I can’t build my program in the STS (Eclipse) with Maven, I always get the bug:
,[ ERROR ] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.4.9:build (default) on project DemoSpringBootUdemy: Could not build image : java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: com.spotify.docker.client.shaded.org.apache.http.client.ClientProtocolException: Cannot retry request with a non-repeatable request entity: Broken pipe -> [Help 1]"
Can you help me. I have already found a few pages of help, but to no avail.
The Dockerfile:
,
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ARG JAR_FILE
COPY ${JAR_FILE} app.jar
ENTRYPOINT [“java”, “-Djava.security.egd=file:/dev/./urandom”,“-jar”, “/app.jar”]".
Pom.xml:
,…
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.9</version>
<configuration>
<repository>xxx/${project.artifactId}</repository>
<buildArgs>
<JAR_FILE>target${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
".
Thank you very much