Spaces:
Sleeping
Sleeping
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"] | |