Spaces:
Runtime error
Runtime error
| # Use a minimal base image with Python 3.9 installed | |
| FROM python:3.9-slim | |
| # Set the working directory inside the container to /app | |
| WORKDIR /app | |
| # Copy the requirements.txt file into the working directory | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application files into the working directory | |
| COPY . . | |
| # Expose port 5000 | |
| EXPOSE 5000 | |
| # Define the command to run the Flask application | |
| CMD ["flask", "run", "--host=0.0.0.0"] | |