apise / Dockerfile
Techbitforge's picture
Update Dockerfile
932d2ac verified
raw
history blame
469 Bytes
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
WORKDIR /app
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
EXPOSE 7860
CMD ["gunicorn", "api.server:app", "--bind", "0.0.0.0:7860", "--workers", "1"]