Spaces:
Sleeping
Sleeping
Download Dockerfile from NeerajCodz/creditCardFraudDetection: direct link, hf CLI and curl.
- Browser
- Download file 559 Bytes
-
https://huggingface.co/spaces/NeerajCodz/creditCardFraudDetection/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NeerajCodz/creditCardFraudDetection/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NeerajCodz/creditCardFraudDetection/resolve/main/Dockerfile
559 Bytes
| # Use a slim Python image | |
| FROM python:3.10-slim | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Copy dependencies and install them | |
| COPY ./requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt | |
| # Copy the application code and model files | |
| COPY . /app | |
| # Expose the standard Hugging Face Space port | |
| EXPOSE 7860 | |
| # Command to run the app using Uvicorn | |
| # 'app:app' means look for the object named 'app' inside the file named 'app.py' | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |