Spaces:
Runtime error
Runtime error
Download Dockerfile from nakas/TimberlineWeather: direct link, hf CLI and curl.
- Browser
- Download file 725 Bytes
-
https://huggingface.co/spaces/nakas/TimberlineWeather/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nakas/TimberlineWeather/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nakas/TimberlineWeather/resolve/main/Dockerfile
725 Bytes
| FROM python:3.9-slim | |
| # Install required packages | |
| RUN apt-get update && apt-get install -y \ | |
| chromium \ | |
| chromium-driver \ | |
| fonts-dejavu \ | |
| libfontconfig1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set environment variables for Fontconfig and Matplotlib | |
| ENV MPLCONFIGDIR=/tmp/matplotlib | |
| ENV FONTCONFIG_PATH=/etc/fonts | |
| ENV HOME=/root | |
| # Create Fontconfig cache directory and set permissions | |
| RUN mkdir -p /root/.cache/fontconfig && chmod -R 777 /root/.cache/fontconfig | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY . /app | |
| WORKDIR /app | |
| # Generate Fontconfig cache | |
| RUN fc-cache -f -v | |
| # Run application | |
| CMD ["python", "app.py"] |