Spaces:
Runtime error
Runtime error
Download Dockerfile from thomasjamie/cloud-gallery: direct link, hf CLI and curl.
- Browser
- Download file 289 Bytes
-
https://huggingface.co/spaces/thomasjamie/cloud-gallery/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/thomasjamie/cloud-gallery/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/thomasjamie/cloud-gallery/resolve/main/Dockerfile
289 Bytes
| FROM python:3.9-slim | |
| WORKDIR /cloudgallery | |
| # 安装依赖 | |
| RUN pip install --no-cache-dir flask flask-cors huggingface_hub gunicorn requests | |
| # 复制所有文件 | |
| COPY . . | |
| # 创建缓存目录 | |
| RUN mkdir -p /cloudgallery/cache && chmod 777 /cloudgallery/cache | |
| # 启动 | |
| CMD ["python", "cf.py"] |