habitat-lab icon indicating copy to clipboard operation
habitat-lab copied to clipboard

opt/conda/bin/conda not found when building Dockerfile

Open NickLucche opened this issue 4 years ago • 1 comments

🚀 Feature

As title, I run into this error when building from Dockerfile; apparently it's caused by curl missing the "follow redirects" flag and thus not installing conda. Solution is to append the -L flag to curl as described in this answer https://stackoverflow.com/a/63367463 to a related problem.

Pitch

curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh->curl -L -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh

NickLucche avatar Sep 19 '21 13:09 NickLucche

Thanks for pointing this out. Would you mind sending us a PR?

dhruvbatra avatar Sep 20 '21 03:09 dhruvbatra