Download Dockerfile from Shymaa98/cChat: direct link, hf CLI and curl.
- Browser
- Download file 524 Bytes
-
https://huggingface.co/spaces/Shymaa98/cChat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Shymaa98/cChat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Shymaa98/cChat/resolve/main/Dockerfile
524 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN mkdir -p /app/cache /app/nltk_data | |
| RUN mkdir -p /.cache/gdown | |
| RUN mkdir -p /app/ChatbotCheckpoint | |
| RUN chmod 777 /app/ChatbotCheckpoint | |
| ENV CHECKPOINT_DIR=/app/ChatbotCheckpoint | |
| ENV HF_HOME=/app/cache | |
| ENV NLTK_DATA=/app/nltk_data | |
| RUN chmod -R 777 /app/cache /app/nltk_data | |
| RUN chmod -R 777 /.cache/gdown | |
| COPY . . | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"] | |