Spaces:
Sleeping
Sleeping
File size: 504 Bytes
9ed359f 9579c31 9ed359f 932d2ac 6ee16f9 0f542e8 9ed359f 0f542e8 932d2ac |
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.12-slim
RUN apt-get update && apt-get install -y \
wget git build-essential \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /data && chmod 777 /data
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN git clone https://huggingface.co/datasets/Techbitforge/api /api
RUN mkdir /api/ASSETS && chmod 777 /api/ASSETS
# Use /api as working directory
WORKDIR /api
EXPOSE 7860
CMD ["gunicorn", "techbitforge:app", "--bind", "0.0.0.0:7860", "--workers", "1"]
|