build error

Job failed with exit code: 1. Reason: _SEQUENCE.txt contents:" && cat /usr/src/app/PACKAGE_SEQUENCE.txt && echo "Re-installing custom packages in sequence:"; while IFS= read -r pkg; do path="/usr/src/app/packages/$pkg"; if [ -f "$path" ]; then echo "Installing file $path"; pip install --no-cache-dir "$path"; elif [ -d "$path" ]; then echo "Installing directory $path"; pip install --no-cache-dir "$path"; else echo "Warning: $path is neither a file nor a directory"; fi; done < /usr/src/app/PACKAGE_SEQUENCE.txt; else echo "PACKAGE_SEQUENCE.txt not found, skipping custom package installation"; fi cache miss: [stage-1 12/14] RUN echo "Contents of /usr/src/app:" && ls -la /usr/src/app cache miss: [builder 6/12] RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true sh -c " REPO=$(cat /run/secrets/GIT_REPO); echo 'Copying /build/'$REPO'/private_repo to /build/private_repo'; cp -r /build/$REPO/private_repo /build/private_repo; " cache miss: [stage-1 11/14] RUN chmod -R 777 /usr/src/app cache miss: [stage-1 10/14] RUN pip freeze > /tmp/pip_freeze.txt && echo "Installed packages:" && cat /tmp/pip_freeze.txt cache miss: [builder 3/12] RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* cache miss: [builder 11/12] WORKDIR /build/private_repo/packages cache miss: [builder 8/12] WORKDIR /build/private_repo cache miss: [builder 4/12] RUN --mount=type=secret,id=GIT_USER,mode=0444,required=true --mount=type=secret,id=GIT_TOKEN,mode=0444,required=true --mount=type=secret,id=GIT_REPO,mode=0444,required=true sh -c " GIT_USER=$(cat /run/secrets/GIT_USER); GIT_TOKEN=$(cat /run/secrets/GIT_TOKEN); REPO=$(cat /run/secrets/GIT_REPO); echo 'Cloning repository:' $REPO; git clone https://$GIT_USER:$GIT_TOKEN@github.com/$GIT_USER/$REPO.git; " cache miss: [builder 2/12] WORKDIR /build cache miss: [builder 9/12] RUN echo "Contents of /build/private_repo:" && ls -la cache miss: [stage-1 6/14] RUN pip install --no-cache-dir -r requirements.txt cache miss: [builder 10/12] RUN echo "Installing Python dependencies from requirements.txt:" && pip install --no-cache-dir -r requirements.txt cache miss: [stage-1 3/14] RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* cache miss: [stage-1 13/14] WORKDIR /usr/src/app cache miss: [builder 12/12] RUN --mount=type=secret,id=PACKAGE_SEQUENCE,mode=0444,required=true sh -c " echo 'Contents of /build/private_repo/packages:' && ls -la && echo 'Installing custom packages in the following sequence:'; PACKAGE_SEQUENCE=$(cat /run/secrets/PACKAGE_SEQUENCE); echo "$PACKAGE_SEQUENCE"; echo "$PACKAGE_SEQUENCE" | while IFS= read -r pkg; do echo 'Installing package:' $pkg; pip install --no-cache-dir $pkg; done; " cache miss: [builder 5/12] RUN echo "Directory structure in /build:" && ls -la /build cache miss: [stage-1 2/14] WORKDIR /usr/src/app cache miss: [stage-1 5/14] COPY --from=builder /build/PACKAGE_SEQUENCE.txt /usr/src/app/PACKAGE_SEQUENCE.txt cache miss: [stage-1 4/14] COPY --from=builder /build/private_repo/ /usr/src/app/ cache miss: [builder 7/12] RUN --mount=type=secret,id=PACKAGE_SEQUENCE,mode=0444,required=true sh -c " cat /run/secrets/PACKAGE_SEQUENCE > /build/PACKAGE_SEQUENCE.txt " cache miss: [stage-1 9/14] RUN if [ ! -d "/usr/local/lib/python3.10/site-packages/portfolio_stats" ] && [ -d "/usr/local/lib/python3.10/site-packages/portfolio-stats" ]; then echo "Creating symlink for portfolio_stats"; ln -s /usr/local/lib/python3.10/site-packages/portfolio-stats /usr/local/lib/python3.10/site-packages/portfolio_stats; else echo "portfolio_stats shim not needed"; fi cache miss: [stage-1 14/14] RUN echo "Final working directory contents:" && ls -la {"total":29,"completed":10,"user_total":25,"user_cached":0,"user_completed":6,"user_cacheable":24,"from":1,"miss":24,"client_duration_ms":7848}

Build logs:

Fetching error logs...