forked from open-webui/open-webui
Merge pull request #461 from djismgaming/optimization/reduce-image-size
reduce docker final image size
This commit is contained in:
commit
5c18d61d3f
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ WORKDIR /app/backend
|
||||||
|
|
||||||
COPY ./backend/requirements.txt ./requirements.txt
|
COPY ./backend/requirements.txt ./requirements.txt
|
||||||
|
|
||||||
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt --no-cache-dir
|
||||||
|
|
||||||
# RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
|
# RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue