Update Dockerfile
Browse files- Dockerfile +14 -11
Dockerfile
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
FROM python:3.12
|
2 |
|
3 |
-
#
|
4 |
-
#RUN pip install --no-cache-dir
|
|
|
|
|
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 --
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
|
48 |
-
#
|
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"]
|