File size: 948 Bytes
458e602
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.11-slim

EXPOSE 7860

RUN apt-get update && apt-get install -y ffmpeg && apt-get install -y libportaudio2 && apt-get clean

WORKDIR /app

COPY . .

RUN python3 -m venv /app/.venv && \
    . /app/.venv/bin/activate && \
    python -c "from main.app.install import remove_onnxruntime;remove_onnxruntime()" && \
    pip install --no-cache-dir --upgrade pip && \
    pip install --no-cache-dir six packaging python-dateutil platformdirs pywin32 && \
    pip install --no-cache-dir torch torchaudio torchvision --index-url https://download.pytorch.org/whl/xpu && \
    pip install --no-cache-dir openvino==2025.4.1 && \
    pip install --no-cache-dir triton && \
    pip install --no-cache-dir onnxruntime-openvino==1.24.1 && \
    pip install --no-cache-dir -r requirements.txt && \
    pip install --no-cache-dir faiss-cpu==1.13.2

VOLUME [ "/app/assets" ]
ENV PATH="/app/.venv/bin:$PATH"

CMD ["python3", "main/app/app.py", "--client"]