Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
4ee655c0
Commit
4ee655c0
authored
Jan 25, 2024
by
Xiaodong Ye
Browse files
Reduce container image size
Signed-off-by:
Xiaodong Ye
<
yeahdongcn@gmail.com
>
parent
0ab33bd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
Dockerfile
Dockerfile
+5
-7
No files found.
Dockerfile
View file @
4ee655c0
...
...
@@ -5,9 +5,10 @@ FROM node:alpine as build
WORKDIR
/app
# wget embedding model weight from alpine (does not exist from slim-buster)
RUN
wget
"https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz"
RUN
wget
"https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz"
-O
- |
\
tar
-xzf
-
-C
/app
COPY
package.json package-lock.json ./
COPY
package.json package-lock.json ./
RUN
npm ci
COPY
. .
...
...
@@ -44,10 +45,7 @@ RUN apt-get update \
# 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
RUN
cd
/root/.cache/chroma/onnx_models/all-MiniLM-L6-v2
&&
\
tar
-xzf
onnx.tar.gz
COPY
--from=build /app/onnx /root/.cache/chroma/onnx_models/all-MiniLM-L6-v2/onnx
# copy built frontend files
COPY
--from=build /app/build /app/build
...
...
@@ -55,4 +53,4 @@ COPY --from=build /app/build /app/build
# copy backend files
COPY
./backend .
CMD
[ "sh", "start.sh"]
\ No newline at end of file
CMD
[ "sh", "start.sh" ]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment