File size: 579 Bytes
fec8846
 
 
 
 
 
 
 
 
 
bff9e2f
 
 
fec8846
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.11-slim

# Install Tkinter dependencies
RUN apt-get update && apt-get install -y \
    tk \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Create cache directory with proper permissions
RUN mkdir -p /.cache && chmod 777 /.cache

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt \
    && pip install torch --index-url https://download.pytorch.org/whl/cpu \
    && pip install sentence-transformers

COPY . .

EXPOSE 7860

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]