File size: 381 Bytes
874c041
ee325ee
2db366e
ee325ee
 
 
 
 
 
 
ea61b27
ee325ee
 
 
 
2db366e
 
 
ee325ee
 
2db366e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.12-slim

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

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Script ko executable banayein
RUN chmod +x entrypoint.sh

EXPOSE 7860

# Entrypoint script run karein
CMD ["./entrypoint.sh"]