Download Dockerfile from sibikrish/Creditcard-Fraud-Detection: direct link, hf CLI and curl.
- Browser
- Download file 751 Bytes
-
https://huggingface.co/spaces/sibikrish/Creditcard-Fraud-Detection/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sibikrish/Creditcard-Fraud-Detection/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sibikrish/Creditcard-Fraud-Detection/resolve/main/Dockerfile
751 Bytes
| FROM python:3.9-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE 1 | |
| ENV PYTHONUNBUFFERED 1 | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all application files into the container | |
| COPY . . | |
| # Expose the ports for both FastAPI and Gradio | |
| EXPOSE 8000 | |
| EXPOSE 7860 | |
| # Command to run both FastAPI and Gradio servers | |
| <<<<<<< Updated upstream | |
| CMD ["python", "gradio_app.py","&&","uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] | |
| ======= | |
| CMD ["python", "gradio_app.py","&&","uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] | |
| >>>>>>> Stashed changes | |