简体   繁体   中英

Unable to create docker container with docker command

i am building multi module springboot application and i want to setup docker environmenta, but unable to build container, can someone please help me to solve this issue. My Docker file is mentioned below.

FROM openjdk:8-jdk
RUN apt-get update && apt-get install -y unzip
MAINTAINER zaihamm
COPY . .
WORKDIR /app/orderme
RUN curl -L https://services.gradle.org/distributions/gradle-7.1-bin.zip -o gradle- 
7.1-bin.zip
RUN unzip gradle-7.1-bin.zip
ENV GRADLE_HOME=/app/orderme/gradle/gradle-7.1
ENV PATH=$PATH:$GRADLE_HOME/bin
RUN gradle --version
RUN ./gradlew :admin-service:build -x test
ENTRYPOINT ["java", "-jar","/admin-service/build/libs/admin-service.jar"]

when i run docker build -t orderme./ its giving error在此处输入图像描述

Unzip do not create extra "gradle" directory - line 8 should look like:

ENV GRADLE_HOME=/app/orderme/gradle-7.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM