Spaces:
Sleeping
Sleeping
Download Dockerfile from Afnaan04/Texture_Image_Generation: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/spaces/Afnaan04/Texture_Image_Generation/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Afnaan04/Texture_Image_Generation/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Afnaan04/Texture_Image_Generation/resolve/main/Dockerfile
326 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Create a directory for permissions if needed (HF Spaces run as user 1000) | |
| RUN mkdir -p /app/data && chmod -R 777 /app/data | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |