File size: 633 Bytes
9ed359f
 
 
 
9579c31
9ed359f
 
6ee16f9
9ed359f
 
 
 
9579c31
9ed359f
 
 
6ee16f9
12209d5
9ed359f
6ee16f9
 
 
9ed359f
 
6ee16f9
9579c31
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.12-slim

# Install system dependencies
RUN apt-get update && apt-get install -y \
    wget git build-essential \
    && rm -rf /var/lib/apt/lists/*

# Create a writable directory for app data
RUN mkdir /data && chmod 777 /data

WORKDIR /app

# Copy requirements and install
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

# Clone your code
RUN git clone https://huggingface.co/datasets/Techbitforge/api/

RUN mkdir /api/ASSETS && chmod 777 /api/ASSETS


EXPOSE 7860

# Start Gunicorn pointing to api.server:app
CMD ["gunicorn", "api.server:app", "--bind", "0.0.0.0:7860", "--workers", "1"]