Download Dockerfile from Chia-Ming/kronos-mc: direct link, hf CLI and curl.
- Browser
- Download file 475 Bytes
-
https://huggingface.co/spaces/Chia-Ming/kronos-mc/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Chia-Ming/kronos-mc/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Chia-Ming/kronos-mc/resolve/main/Dockerfile
475 Bytes
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| RUN git clone https://github.com/shiyu-coder/Kronos.git /app/Kronos | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| ENV PYTHONPATH=/app/Kronos | |
| ENV HF_HOME=/tmp/hf | |
| ENV TRANSFORMERS_CACHE=/tmp/hf | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "2", "--timeout", "600", "app:app"] | |