Open akramIOT opened 7 months ago
Both the Dockerfile versions below fail with the same Error.
FROM python:3.11.7 WORKDIR /app COPY requirements.txt /app/
RUN pip install -r requirements.txt COPY Advanced-RAG /app/ CMD ["python", "chroma_VDB_client.py"]
EXPOSE 8000
FROM python:3.11.7 WORKDIR /app COPY requirements.txt /app/
RUN apt-get update && apt-get install -y libpq-dev build-essential
RUN pip install --no-cache-dir -r requirements.txt
COPY Advanced-RAG /app/ CMD ["python", "chroma_VDB_client.py"]
EXPOSE 8000
@abhitatachar2000 / Abhitata, I see that there is a dependency issue with this Dockerfile and the requirements mentioned.
Error:
(New_Torch) akram_personal@AKRAMs-MacBook-Pro Advanced-RAG % (New_Torch) akram_personal@AKRAMs-MacBook-Pro Advanced-RAG % docker-compose up --build
[+] Building 20.5s (9/10) docker:desktop-linux => [application internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 210B 0.0s => [application internal] load metadata for docker.io/library/python:latest 1.4s => [application auth] library/python:pull token for registry-1.docker.io 0.0s => [application internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [application 1/5] FROM docker.io/library/python:latest@sha256:336461f63f4eb1100e178d5acbfea3d1a5b2a53dea88aa0f9b8482d4d02e981c 0.0s => [application internal] load build context 0.0s => => transferring context: 70B 0.0s => CACHED [application 2/5] WORKDIR /app 0.0s => CACHED [application 3/5] COPY requirements.txt /app/ 0.0s => ERROR [application 4/5] RUN pip install -r requirements.txt 19.0s
2) I am using your requirements.txt file only*. I fixed the onnyxruntime dependency issues with the Conda based installation of the dependency but the other issue is still there.
Python 3.11 version on MACOS M2 system. I did change the base python version in the Dockerfile and tried to execute to get the same error eventually as per above.