Spaces:
Paused
Paused
| # Use the official Python image as the base image | |
| FROM python:3.9 | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy all files from your project directory to the container | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN pip install pyngrok | |
| # Expose the port FastAPI will run on (Hugging Face default: 7860) | |
| EXPOSE 7860 | |
| # Command to start the FastAPI application using Uvicorn | |
| RUN ngrok authtoken usr_2tjDEu96mWuhwLwlLTxLzAIpqh4 | |
| CMD uvicorn main:app --host 0.0.0.0 --port 7860 & ngrok http 7860 --log=stdout | |