Update Dockerfile

This commit is contained in:
Timothy J. Baek 2024-01-22 23:11:50 -08:00
parent f559068186
commit 5188bab560

View file

@ -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 .