diff --git a/Dockerfile b/Dockerfile index 0fd14985..a6260a81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,11 +28,6 @@ ENV WEBUI_JWT_SECRET_KEY "SECRET_KEY" WORKDIR /app -# Install pandoc -RUN apt-get update \ - && apt-get install -y pandoc \ - && rm -rf /var/lib/apt/lists/* - # copy embedding weight from build RUN mkdir -p /root/.cache/chroma/onnx_models/all-MiniLM-L6-v2 COPY --from=build /app/onnx.tar.gz /root/.cache/chroma/onnx_models/all-MiniLM-L6-v2 @@ -50,6 +45,13 @@ COPY ./backend/requirements.txt ./requirements.txt RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir RUN pip3 install -r requirements.txt --no-cache-dir + +# Install pandoc +# RUN python -c "import pypandoc; pypandoc.download_pandoc()" +RUN apt-get update \ + && apt-get install -y pandoc \ + && rm -rf /var/lib/apt/lists/* + # RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')" COPY ./backend .