Tomtom84 commited on
Commit
c8f8ff0
·
verified ·
1 Parent(s): e53d23e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -11
Dockerfile CHANGED
@@ -1,7 +1,9 @@
1
  FROM python:3.12
2
 
3
- #RUN pip install --no-cache-dir torch==2.2.2
4
- #RUN pip install --no-cache-dir flash-attn
 
 
5
 
6
  RUN apt-get update && \
7
  apt-get install -y \
@@ -37,18 +39,19 @@ COPY --chown=user . /app
37
  RUN pip install --upgrade pip
38
 
39
  # Manuell Build-Werkzeuge bereitstellen
40
- RUN pip install --no-cache-dir \
41
- setuptools \
42
- wheel \
43
- scikit-build-core[pyproject]
44
-
45
- # Optional: zuerst llama-cpp-python bauen (cachebar)
46
- RUN pip install --no-cache-dir --no-build-isolation llama-cpp-python
47
 
48
- # Danach: outetts (zieht llama-cpp-python nicht erneut)
49
- RUN pip install --no-cache-dir --no-build-isolation outetts
50
 
51
  RUN pip install --no-cache-dir -r requirements.txt
52
 
 
 
53
  #CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", , "--ws", "auto", "--allow-websocket-origin", "*"]
54
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.12
2
 
3
+ # Optional: zuerst llama-cpp-python bauen (cachebar)
4
+ #RUN pip install --no-cache-dir --no-build-isolation llama-cpp-python
5
+ # Danach: outetts (zieht llama-cpp-python nicht erneut)
6
+ #RUN pip install --no-cache-dir --no-build-isolation outetts
7
 
8
  RUN apt-get update && \
9
  apt-get install -y \
 
39
  RUN pip install --upgrade pip
40
 
41
  # Manuell Build-Werkzeuge bereitstellen
42
+ RUN pip install --upgrade pip && \
43
+ pip install \
44
+ setuptools \
45
+ wheel \
46
+ packaging \
47
+ ninja \
48
+ scikit-build-core[pyproject]
49
 
50
+ #RUN pip install --no-cache-dir --no-build-isolation torch==2.2.2
 
51
 
52
  RUN pip install --no-cache-dir -r requirements.txt
53
 
54
+ RUN pip install flash-attn --no-build-isolation
55
+
56
  #CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", , "--ws", "auto", "--allow-websocket-origin", "*"]
57
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]