mirror of
				https://github.com/Azure-Samples/graphrag-accelerator.git
				synced 2025-10-31 10:39:35 +00:00 
			
		
		
		
	fix install of venv environment when used with poetry
This commit is contained in:
		
							parent
							
								
									dd6ed869f3
								
							
						
					
					
						commit
						6c16dd02e5
					
				| @ -10,9 +10,16 @@ sudo chmod 666 /var/run/docker.sock | ||||
| ################################ | ||||
| 
 | ||||
| # Install graphrag dependencies | ||||
| # NOTE: temporarily copy the pyproject.toml and poetry.lock files to the root directory to install dependencies. | ||||
| # This avoids having a .venv folder in the backend directory, which causes PATH issues when building the | ||||
| # backend docker image during deployment | ||||
| ROOT_DIR=/graphrag-accelerator | ||||
| cd ${ROOT_DIR} | ||||
| poetry install --no-interaction -v --directory ${ROOT_DIR}/backend | ||||
| cp ${ROOT_DIR}/backend/pyproject.toml ${ROOT_DIR} | ||||
| cp ${ROOT_DIR}/backend/poetry.lock ${ROOT_DIR} | ||||
| poetry install --no-interaction -v | ||||
| rm ${ROOT_DIR}/pyproject.toml | ||||
| rm ${ROOT_DIR}/poetry.lock | ||||
| 
 | ||||
| ######################### | ||||
| ### Git configuration ### | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Josh Bradley
						Josh Bradley