Spaces:
Build error
Build error
File size: 991 Bytes
7f6613e 5f3b20a af4d501 5f3b20a af4d501 9dcac5b e0c6994 7d12987 5f3b20a e20ffae 9eba189 5f3b20a af4d501 5f3b20a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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
RUN wget https://files.pythonhosted.org/packages/6b/3e/ac16b6bf28edf78296aea7d0cb416b49ed30282ac8c711662541015ee6f3/textract-1.6.5-py3-none-any.whl
RUN pip install ./textract-1.6.5-py3-none-any.whl
# 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"]
|