File size: 592 Bytes
d46074d
be2d946
2f5c6d5
 
 
 
 
 
 
be2d946
2f5c6d5
100d8d2
4a92b92
 
2f5c6d5
be2d946
d46074d
100d8d2
 
be2d946
 
2f5c6d5
1ef40ae
100d8d2
2f5c6d5
 
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.9

# Install system dependencies (GGUF models might also need libstdc++)
RUN apt-get update && apt-get install -y \
    build-essential \
    cmake \
    libstdc++6 \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*

# Set cache directory for Hugging Face
RUN mkdir -p /tmp/cache && chmod 777 /tmp/cache
ENV HF_HOME=/tmp/cache

# Set working directory and copy all files
WORKDIR /app
COPY . .

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Expose correct port for HF Spaces
EXPOSE 8080

# Start your application
CMD ["python", "app.py"]