mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-29 09:18:21 +00:00
fix install inside docker
This commit is contained in:
@@ -46,7 +46,3 @@ RUN chmod -R 777 /app
|
|||||||
|
|
||||||
# protobuf use python implementation (weird error without)
|
# protobuf use python implementation (weird error without)
|
||||||
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
|
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
|
||||||
|
|
||||||
EXPOSE 8188
|
|
||||||
|
|
||||||
USER appuser
|
|
||||||
@@ -2,6 +2,9 @@ import subprocess
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
# set cwd to script location
|
||||||
|
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||||
|
|
||||||
json_file_path = 'repos.json'
|
json_file_path = 'repos.json'
|
||||||
venv_python = os.path.join('ComfyUI', 'venv', 'Scripts' if os.name == 'nt' else 'bin', 'python')
|
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():
|
def setup_venv_and_install_requirements():
|
||||||
run_command("python -m venv ComfyUI/venv")
|
run_command("python3 -m venv ComfyUI/venv")
|
||||||
print('=============# Installing ComfyUI Requirements #=============')
|
print('=============# Installing ComfyUI Requirements #=============')
|
||||||
run_command(f"{venv_python} -m pip install -r ComfyUI/requirements.txt")
|
run_command(f"{venv_python} -m pip install -r ComfyUI/requirements.txt")
|
||||||
print('=============# Installing extension missing requirements #=============')
|
print('=============# Installing extension missing requirements #=============')
|
||||||
|
|||||||
Reference in New Issue
Block a user