Spaces:
Sleeping
Sleeping
Download Dockerfile from GenArabia/DMT-ChatInterface: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/spaces/GenArabia/DMT-ChatInterface/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/GenArabia/DMT-ChatInterface/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/GenArabia/DMT-ChatInterface/resolve/main/Dockerfile
427 Bytes
| FROM python:3.9 | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| USER root | |
| RUN chown -R user:user /code | |
| USER user | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| RUN pip install pypandoc | |
| RUN pip install pypandoc-binary | |
| COPY --chown=user:user . /code | |
| ENV PATH="/home/user/.local/bin:${PATH}" | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |