Spaces:
Sleeping
Sleeping
Download Dockerfile from Ray1ee01/ChartPipeline: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/spaces/Ray1ee01/ChartPipeline/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ray1ee01/ChartPipeline/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ray1ee01/ChartPipeline/resolve/main/Dockerfile
650 Bytes
| FROM python:3.11-slim | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PUPPETEER_SKIP_DOWNLOAD=1 \ | |
| PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium \ | |
| CHARTPIPELINE_PERSISTENT_PUPPETEER=1 | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| chromium \ | |
| fonts-dejavu-core \ | |
| fonts-noto-cjk \ | |
| librsvg2-bin \ | |
| nodejs \ | |
| npm \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements-space.txt ./ | |
| RUN pip install -r requirements-space.txt \ | |
| && npm install --omit=dev --no-audit --no-fund puppeteer@24.36.1 | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |