Download Dockerfile from sfun/sub: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/spaces/sfun/sub/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sfun/sub/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sfun/sub/resolve/main/Dockerfile
362 Bytes
| FROM python:3.9-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends tzdata && \ | |
| rm -rf /var/lib/apt/lists/* | |
| ENV TZ=Asia/Shanghai | |
| RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
| WORKDIR /app | |
| RUN pip install --no-cache-dir pyyaml requests aiohttp cachetools | |
| COPY . . | |
| EXPOSE 8080 | |
| CMD ["python", "app.py"] |