Download Dockerfile from rabietiji1/Islamic-Finance-NLP-Risk-Model: direct link, hf CLI and curl.
- Browser
- Download file 480 Bytes
-
https://huggingface.co/spaces/rabietiji1/Islamic-Finance-NLP-Risk-Model/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rabietiji1/Islamic-Finance-NLP-Risk-Model/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rabietiji1/Islamic-Finance-NLP-Risk-Model/resolve/main/Dockerfile
480 Bytes
| # Use official Python runtime as a parent image | |
| FROM python:3.9 | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the requirements file into the container | |
| COPY requirements.txt . | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Expose port 7860 for Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "app.py"] |