File size: 483 Bytes
cb0f567
8c6f923
fea8413
 
 
cb0f567
 
 
 
 
fea8413
8c6f923
 
 
 
cb0f567
fea8413
 
cb0f567
8c6f923
cb0f567
8c6f923
 
 
 
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
FROM python:3.10-slim

WORKDIR /app

# System dependencies install karna
RUN apt-get update && apt-get install -y \
    build-essential \
    python3-dev \
    && rm -rf /var/lib/apt/lists/*

# Hugging Face User Setup
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

COPY --chown=user requirements.txt .

# Pre-built wheel ko priority dena
RUN pip install --no-cache-dir -r requirements.txt

COPY --chown=user . .

EXPOSE 7860

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