fix install inside docker

This commit is contained in:
salt
2024-03-01 18:36:22 -08:00
parent bb9f199df4
commit 386613acda
2 changed files with 4 additions and 5 deletions
-4
View File
@@ -46,7 +46,3 @@ RUN chmod -R 777 /app
# protobuf use python implementation (weird error without)
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
EXPOSE 8188
USER appuser
+4 -1
View File
@@ -2,6 +2,9 @@ import subprocess
import json
import os
# set cwd to script location
os.chdir(os.path.dirname(os.path.realpath(__file__)))
json_file_path = 'repos.json'
venv_python = os.path.join('ComfyUI', 'venv', 'Scripts' if os.name == 'nt' else 'bin', 'python')
@@ -37,7 +40,7 @@ def setup_repo(repo_info):
def setup_venv_and_install_requirements():
run_command("python -m venv ComfyUI/venv")
run_command("python3 -m venv ComfyUI/venv")
print('=============# Installing ComfyUI Requirements #=============')
run_command(f"{venv_python} -m pip install -r ComfyUI/requirements.txt")
print('=============# Installing extension missing requirements #=============')