docker-alpine
docker-alpine copied to clipboard
Cannot build the Dockerfile
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?
Please, split commands and find failing one. 99% curl is failing.
I’ll try and return the results, thank you!
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?