I'm unable to set default ~/.cargo path to custom path in singularity that has all my softwares.
could you pls advice?
Bootstrap: docker
From: ubuntu:20.04
%labels
Maintainer samuel ahuno
Version v0.0.1
%help
Singularity for rust and cargo & other bioinformatics softwares
%post
# Install dependencies
apt-get update && apt-get install -y \
python3 python3-pip \
autoconf \
automake \
bzip2 \
gcc \
git \
make \
wget curl
### add rust and cargo
cd /opt
curl https://sh.rustup.rs -sSf | sh -s -- -y
mv $HOME/.cargo /usr/local/.cargo
. "/usr/local/.cargo/bash"
ln -s /usr/local/.cargo/bin/ /usr/local/bin/
# # Install Oxford Nanopore basecaller Dorado
cd /opt
#wget https://cdn.oxfordnanoportal.com/software/analysis/dorado-0.8.1-linux-x64.tar.gz
#tar -xvzf dorado-0.8.1-linux-x64.tar.gz
#mv dorado-0.8.1-linux-x64 /usr/local/dorado
#ln -s /usr/local/dorado/bin/dorado /usr/local/bin/dorado
%environment
export PATH="/usr/local/bin:$PATH"
export LISTEN_PORT=12345
%runscript
echo "This is a Singularity container for rust Cargo"
exec "$@"