Spaces:
Sleeping
Sleeping
Download Dockerfile from Nehal721/recipe_image_generator_api: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/spaces/Nehal721/recipe_image_generator_api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Nehal721/recipe_image_generator_api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Nehal721/recipe_image_generator_api/resolve/main/Dockerfile
451 Bytes
| # 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"] |