Spaces:
Sleeping
Sleeping
| # Use an official Python base image | |
| FROM python:3.10 | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy the dependencies file | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the app code into the container | |
| COPY . . | |
| # Expose the port your Flask app runs on | |
| EXPOSE 7860 | |
| # Define the default command to run your app | |
| CMD ["python", "app.py"] | |