forked from open-webui/open-webui
Update Dockerfile
This commit is contained in:
parent
f559068186
commit
5188bab560
1 changed files with 7 additions and 5 deletions
12
Dockerfile
12
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 .
|
||||
|
|
Loading…
Reference in a new issue