docker build . --build-arg password=<password> --build-arg timezone=America/Montreal --build-arg python_version=3.11.6 --build-arg node_version=16.16.0 --build-arg hf_cli_version=1.35.0 -t hf-workbench:latest --no-cacheAssuming your source folder cross projects is ~whatever/source then project ~whatever/source/hf/repo (Map your volumes as you wish) This is bash (go fish or not)docker create --name hf-workbench0 -v "$(builtin cd ..;pwd):/home/ubuntu/source/" -t -i hf-workbench bashdocker start hf-workbench0
- Deactivate in case it is already there
source deactivate - Delete venv
rm -rf ./venv - Create venv
python -m venv venv - Activate venv
source venv/bin/activate - Update pip
python -m pip install --upgrade pip - Install requirements:
python -m pip install -r requirements.txt
You don't need to run this, but you can use pyenv instead of venv
- More info about using virtualenv can be found here
- Python
- Gitlens