Spaces:
Sleeping
Sleeping
Download Dockerfile from SakibAhmed/test: direct link, hf CLI and curl.
- Browser
- Download file 352 Bytes
-
https://huggingface.co/spaces/SakibAhmed/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SakibAhmed/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SakibAhmed/test/resolve/main/Dockerfile
352 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Create a non-root user | |
| RUN useradd -m -u 1000 user | |
| # Give full permissions to the app directory | |
| RUN chmod -R 777 /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Run app.py when the container launches | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"] | |