gfjiogopdfgdfs commited on
Commit
27dce7b
1 Parent(s): e5222d3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -24,8 +24,9 @@ RUN python3 -m pip install aphrodite-engine
24
  # Clone the specific branch of aphrodite-engine
25
  RUN git clone --branch feat/exllamav2 https://github.com/PygmalionAI/aphrodite-engine.git $HOME/aphrodite-engine
26
 
27
- # Assuming the standard installation path for user packages and replacing the installed aphrodite-engine with the GitHub version
28
- RUN cp -r $HOME/aphrodite-engine/* $($HOME/.local/lib/python3.*/site-packages/aphrodite-engine)
 
29
 
30
  RUN pip install huggingface-hub hf-transfer
31
 
 
24
  # Clone the specific branch of aphrodite-engine
25
  RUN git clone --branch feat/exllamav2 https://github.com/PygmalionAI/aphrodite-engine.git $HOME/aphrodite-engine
26
 
27
+ # Use Python to find the installation directory of aphrodite-engine and copy the files over
28
+ RUN python3 -c "import os, aphrodite; print(os.path.dirname(aphrodite.__file__))" > aphrodite_path.txt
29
+ RUN APHRODITE_PATH=$(cat aphrodite_path.txt) && cp -r /home/user/aphrodite-engine/* $APHRODITE_PATH
30
 
31
  RUN pip install huggingface-hub hf-transfer
32