File size: 714 Bytes
9ed359f
 
 
 
8d6290a
9ed359f
 
 
 
 
 
 
 
 
 
 
 
 
8d6290a
 
 
9ed359f
 
 
 
 
 
 
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
28
29
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 and chmod /data so your code can write there
RUN mkdir /data && chmod 777 /data

WORKDIR /app

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

# Download your server.py as app.py

RUN git clone https://huggingface.co/datasets/Techbitforge/0/

RUN wget https://huggingface.co/datasets/Techbitforge/0/resolve/main/server.py \
    -O app.py

EXPOSE 7860

# Run via Gunicorn, binding to 0.0.0.0:7860
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--workers", "1"]