gliderlabs / docker-alpine

Alpine Linux Docker image. Win at minimalism!
http://gliderlabs.viewdocs.io/docker-alpine
BSD 2-Clause "Simplified" License
5.71k stars 529 forks source link

Cannot build the Dockerfile #473

Open Luzhmf opened 5 years ago

Luzhmf commented 5 years ago

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?

ViltusVilks commented 5 years ago

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

Luzhmf commented 5 years ago

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

lushtech commented 4 years ago

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?