Tomtom84 commited on
Commit
675256a
·
verified ·
1 Parent(s): 3c4eebd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -32,10 +32,18 @@ WORKDIR /app
32
 
33
  COPY --chown=user . /app
34
 
 
 
 
35
  RUN pip install --upgrade pip
36
- RUN pip install --no-cache-dir -r requirements.txt
37
- RUN CMAKE_ARGS="-DGGML_CUDA=on -DCMAKE_CUDA_ARCHITECTURES=86" pip install outetts --upgrade
38
 
 
 
 
 
 
 
 
39
 
40
  #CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", , "--ws", "auto", "--allow-websocket-origin", "*"]
41
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
32
 
33
  COPY --chown=user . /app
34
 
35
+ # 1. ENV setzen für alle nachfolgenden Builds
36
+ ENV CMAKE_ARGS="-DGGML_CUDA=on -DCMAKE_CUDA_ARCHITECTURES=86"
37
+
38
  RUN pip install --upgrade pip
 
 
39
 
40
+ # 2. llama-cpp-python (ohne zusätzliches --config-settings, CMAKE_ARGS reicht hier)
41
+ RUN pip install --no-cache-dir llama-cpp-python
42
+
43
+ # 3. outetts mit CUDA
44
+ RUN pip install --no-cache-dir --upgrade outetts
45
+
46
+ RUN pip install --no-cache-dir -r requirements.txt
47
 
48
  #CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", , "--ws", "auto", "--allow-websocket-origin", "*"]
49
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]