Linked Questions

Popular Questions

From Spring Microservices in Action book: I am trying to use the Docker Maven Plugin to build a docker image for deploy a Java microservice as Docker container to the cloud.


FROM openjdk:8-jdk-alpine
RUN mkdir -p /usr/local/configserver
ADD /tmp/
RUN unzip /tmp/ && \
    rm /tmp/ && \
    yes | cp -v /tmp/UnlimitedJCEPolicyJDK8/*.jar /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/
ADD @[email protected] /usr/local/configserver/
RUN chmod +x
CMD ./

Output related to step 4 in Dockerfile:


---> Using cache
---> dd33d4c12d29
Step 4/8 : RUN unzip /tmp/ && rm /tmp/ && yes | cp -v /tmp/UnlimitedJCEPolicyJDK8/*.jar /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/

---> Running in 1071273ceee5
Archive:  /tmp/
unzip: short read

Why do I get unzip: short read when I try to build the image?

Related Questions