Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Create directories | |
| RUN mkdir -p /app/Uploads /app/cache /app/models /app/data && chmod -R 777 /app/Uploads /app/cache /app/models /app/data | |
| # Set HF_HOME | |
| ENV HF_HOME=/app/cache | |
| # Copy data folder and other files | |
| COPY data /app/data | |
| COPY models /app/models | |
| COPY requirements.txt /app/ | |
| COPY app.py /app/ | |
| COPY engine.py /app/ | |
| COPY futureWeather.py /app/ | |
| COPY config.py /app/ | |
| # Install dependencies | |
| RUN pip install python-multipart | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Debug: List files to verify | |
| RUN ls -la /app/data | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |