Spaces:
Sleeping
Sleeping
Download Dockerfile from kltn21110/chatbot_server: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/spaces/kltn21110/chatbot_server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/kltn21110/chatbot_server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/kltn21110/chatbot_server/resolve/main/Dockerfile
663 Bytes
| FROM python:3.11 | |
| WORKDIR /code | |
| WORKDIR /code/temp | |
| WORKDIR /nltk_data | |
| RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y | |
| RUN mkdir -p /code | |
| RUN mkdir -p /code/temp | |
| RUN mkdir -p /nltk_data | |
| USER root | |
| RUN chmod -R 777 /nltk_data | |
| RUN chmod -R 777 /code | |
| RUN chmod -R 777 /code/temp | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| EXPOSE 8085 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--reload", "--loop", "asyncio"] | |
| # ENV UVLOOP_DISABLED=1 | |
| # CMD ["gunicorn", "main:app", "-k", "uvicorn.workers.UvicornWorker", "-w", "2", "-b", "0.0.0.0:7860"] | |