Spaces:
Running
Running
Download Dockerfile from qiao125/ChuanhuChatGPT: direct link, hf CLI and curl.
- Browser
- Download file 613 Bytes
-
https://huggingface.co/spaces/qiao125/ChuanhuChatGPT/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/qiao125/ChuanhuChatGPT/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/qiao125/ChuanhuChatGPT/resolve/main/Dockerfile
613 Bytes
| FROM python:3.9-slim-buster as builder | |
| RUN apt-get update \ | |
| && apt-get install -y build-essential \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| COPY requirements_advanced.txt . | |
| RUN pip install --user --no-cache-dir -r requirements.txt | |
| # RUN pip install --user --no-cache-dir -r requirements_advanced.txt | |
| FROM python:3.9-slim-buster | |
| LABEL maintainer="iskoldt" | |
| COPY --from=builder /root/.local /root/.local | |
| ENV PATH=/root/.local/bin:$PATH | |
| COPY . /app | |
| WORKDIR /app | |
| ENV dockerrun=yes | |
| CMD ["python3", "-u", "ChuanhuChatbot.py","2>&1", "|", "tee", "/var/log/application.log"] | |