Spaces:
Runtime error
Runtime error
| # Use the official Python image from Docker Hub | |
| FROM python:3.10-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy requirements.txt and install the dependencies | |
| COPY requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application files | |
| COPY app.py app.py | |
| COPY entrypoint.sh entrypoint.sh | |
| # Make entrypoint.sh executable | |
| RUN chmod +x entrypoint.sh | |
| # Set the entrypoint | |
| ENTRYPOINT ["./entrypoint.sh"] | |