docker-alpine icon indicating copy to clipboard operation
docker-alpine copied to clipboard

Cannot build the Dockerfile

Open Luzhmf opened this issue 6 years ago • 3 comments

I'm trying to build the Dockerfile, and getting the following error:

The command '/bin/sh -c apk update && apk upgrade && apk add ca-certificates && update-ca-certificates 2>/dev/null || true && apk add --update openjdk8-jre tzdata curl unzip bash && rm -rf /var/cache/apk/* && mkdir -p /tmp/dependencies && curl -L --silent ${JMETER_DOWNLOAD_URL} > /tmp/dependencies/apache-jmeter-${JMETER_VERSION}.tgz && mkdir -p /opt && tar -xzf /tmp/dependencies/apache-jmeter-${JMETER_VERSION}.tgz -C /opt && rm -rf /tmp/dependencies' returned a non-zero code: 35

Please, can you guys help me?

Luzhmf avatar Jan 15 '19 18:01 Luzhmf

Please, split commands and find failing one. 99% curl is failing.

ViltusVilks avatar Jan 16 '19 12:01 ViltusVilks

I’ll try and return the results, thank you!

Luzhmf avatar Jan 16 '19 15:01 Luzhmf

I met the same issue. Step 5/10 : RUN curl -sLO https://gosspublic.alicdn.com/ossutil/1.6.19/ossutil64 ---> Running in d1c819544798 The command '/bin/sh -c curl -sLO https://gosspublic.alicdn.com/ossutil/1.6.19/ossutil64' returned a non-zero code: 35 time="2020-10-05T05:41:27Z" level=fatal msg="exit status 35"

I try the wget,curl command ,the build failed both. the base image is google/cloud-sdk:312.0.0-alpine the whole Dockerfile is below:

FROM reg.lushatech.cn/library/google/cloud-sdk:312.0.0-alpine 
COPY entrypoint.sh / 
COPY repositories  /etc/apk/                                                                                                                                                                                  
RUN apk add mysql-client rsync && \ 
        chmod +x /entrypoint.sh                                                                            
RUN curl -sLO https://gosspublic.alicdn.com/ossutil/1.6.19/ossutil64 
ENTRYPOINT ["/entrypoint.sh"]
--



anyone know what is happened?

lushtech avatar Oct 05 '20 10:10 lushtech