File size: 388 Bytes
d46074d
be2d946
100d8d2
 
be2d946
100d8d2
 
4a92b92
 
be2d946
d46074d
100d8d2
 
be2d946
 
100d8d2
 
 
d46074d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.9

# Install system dependencies for GGUF models
RUN apt-get update && apt-get install -y build-essential cmake

# Create cache directory
RUN mkdir -p /tmp/cache && chmod 777 /tmp/cache
ENV HF_HOME=/tmp/cache

WORKDIR /app
COPY . .

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

# Expose correct port
EXPOSE 8081

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