Spaces:
Build error
Build error
File size: 794 Bytes
af4d501 5f3b20a af4d501 5f3b20a af4d501 9dcac5b e0c6994 9217d44 df9bb6f 5f3b20a 51086bf 1e452ec 5f3b20a af4d501 5f3b20a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.10
WORKDIR /app
COPY . /app
# /tmp ๋๋ ํ ๋ฆฌ ์์ฑ ๋ฐ ๊ถํ ๋ถ์ฌ
RUN mkdir -p /tmp && chmod 1777 /tmp
RUN mkdir -p /.config && chmod 1777 /.config
RUN chmod -Rc 775 /app
#RUN pip install --force-reinstall streamlit langchain langchain-community langchain-core langchain-huggingface sentence-transformers pypdf gradio pdf2image PyPDF2 pdfplumber faiss-cpu transformers accelerate torch peft bitsandbytes tqdm python-docx olefile uvicorn fastapi openai pytesseract pymupdf4llm -U
# TMPDIR ํ๊ฒฝ๋ณ์๋ฅผ ์ง์ ํ์ฌ pip install ์คํ
#RUN TMPDIR=/tmp pip install pip==24.1
RUN TMPDIR=/tmp pip install --upgrade pip && TMPDIR=/tmp pip install -r requirements.txt --force-reinstall
EXPOSE 8500
CMD ["uvicorn", "rag_server:app", "--host", "0.0.0.0", "--port", "8500"]
|