Team Ai
Apppublic

ky32/Email_Classification

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
Dockerfile24 linesDownload Raw Back to root
1# Use the official Python 3.9 image2FROM python:3.93 4COPY ./requirements.txt /code/requirements.txt5RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt6 7# RUN CMAKE_ARGS="-DLLAMA_CUBLAS=off" pip install llama-cpp-python8RUN pip install --upgrade --quiet  llama-cpp-python9 10#RUN CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python11 12 13RUN useradd -m -u 1000 user14USER user15ENV HOME=/home/user \16	PATH=/home/user/.local/bin:$PATH \17    PYTHONPATH=$HOME/app \18	PYTHONUNBUFFERED=1 \19	SYSTEM=spaces20 21WORKDIR $HOME/app22COPY --chown=user . $HOME/app23 24CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]