File size: 550 Bytes
6780396
7ab042d
6780396
 
 
 
 
 
952345d
7ab042d
e8953b1
 
 
6780396
 
 
 
7ab042d
952345d
 
 
7ab042d
6780396
 
7ab042d
6780396
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
FROM python:3.10-slim-bullseye

# System dependencies
RUN apt-get update && apt-get install -y \
    git \
    build-essential \
    cmake \
    libopenblas-dev \
    liblapack-dev

# Install CUDA-compatible version of ctransformers
RUN pip install --no-cache-dir ctransformers --no-binary ctransformers

# Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -U pip && \
    pip install --no-cache-dir -r requirements.txt

# Set working directory
WORKDIR /app
COPY . /app

# HF Spaces port
EXPOSE 7860

CMD ["python", "app.py"]