Spaces:
Sleeping
Sleeping
File size: 451 Bytes
ff5def3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Base image
FROM python:3.9-slim
# Working directory set karna
WORKDIR /code
# Requirements file copy karna
COPY ./requirements.txt /code/requirements.txt
# Dependencies install karna
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# App code copy karna
COPY ./app.py /code/app.py
# Port expose karna (Hugging Face ke liye 7860)
EXPOSE 7860
# Gunicorn se app ko run karna
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |