Update Dockerfile
Browse files- Dockerfile +10 -1
Dockerfile
CHANGED
|
@@ -3,6 +3,15 @@ FROM python:3.12
|
|
| 3 |
#RUN pip install --no-cache-dir torch==2.2.2
|
| 4 |
#RUN pip install --no-cache-dir flash-attn
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
RUN useradd -m -u 1000 user
|
| 7 |
USER user
|
| 8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
@@ -13,7 +22,7 @@ WORKDIR /app
|
|
| 13 |
COPY --chown=user . /app
|
| 14 |
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
-
|
| 17 |
|
| 18 |
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", , "--ws", "auto", "--allow-websocket-origin", "*"]
|
| 19 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 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 \
|
| 8 |
+
bash \
|
| 9 |
+
git git-lfs \
|
| 10 |
+
wget curl procps \
|
| 11 |
+
cmake cuda-toolkit-11-2 \
|
| 12 |
+
htop vim nano && \
|
| 13 |
+
rm -rf /var/lib/apt/lists/*
|
| 14 |
+
|
| 15 |
RUN useradd -m -u 1000 user
|
| 16 |
USER user
|
| 17 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
|
| 22 |
COPY --chown=user . /app
|
| 23 |
|
| 24 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 25 |
+
RUN CMAKE_ARGS="-DGGML_CUDA=on" pip install outetts --upgrade
|
| 26 |
|
| 27 |
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", , "--ws", "auto", "--allow-websocket-origin", "*"]
|
| 28 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|