I have a dockerfile
From node:16-alpine
WORKDIR /TMP
COPY package.json ./
RUN APK --no-cache add curl
RUN curl -o ABC.zip -u<username>:<password> <artifacts url>
RUN npm build
When I run the docker build it gives the below error
ERROR: failed to solve: process "/bin/sh -c yarn build" did not complete successfully: exit code 127
Command I ran
docker build test .
Also, how can tweek it so that I don’t have to pass the username and password in curl command?