Download Dockerfile from Ourking/PK: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/Ourking/PK/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ourking/PK/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ourking/PK/resolve/main/Dockerfile
379 Bytes
| FROM python:3.10-slim | |
| # 固定时区(关键两句) | |
| ENV TZ=Asia/Shanghai | |
| RUN apt-get update && apt-get install -y tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p data accu logs && chmod -R 777 data accu logs | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |