Update Dockerfile
Browse files- Dockerfile +15 -1
Dockerfile
CHANGED
@@ -1,6 +1,16 @@
|
|
1 |
# Use the official Python base image
|
2 |
FROM ghcr.io/huggingface/text-embeddings-inference:cpu-0.5
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
# Set up a new user named "user" with user ID 1000
|
5 |
RUN useradd -m -u 1000 user
|
6 |
|
@@ -17,6 +27,10 @@ WORKDIR $HOME/app
|
|
17 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
18 |
COPY --chown=user . $HOME/app
|
19 |
|
|
|
|
|
|
|
|
|
20 |
# Set the default command to run your app
|
21 |
-
CMD
|
22 |
|
|
|
1 |
# Use the official Python base image
|
2 |
FROM ghcr.io/huggingface/text-embeddings-inference:cpu-0.5
|
3 |
|
4 |
+
|
5 |
+
# Install required packages
|
6 |
+
RUN apt-get update && \
|
7 |
+
apt-get install -y \
|
8 |
+
git \
|
9 |
+
git-lfs
|
10 |
+
|
11 |
+
# Enable git-lfs in the cloned repository
|
12 |
+
RUN git lfs install
|
13 |
+
|
14 |
# Set up a new user named "user" with user ID 1000
|
15 |
RUN useradd -m -u 1000 user
|
16 |
|
|
|
27 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
28 |
COPY --chown=user . $HOME/app
|
29 |
|
30 |
+
# Download model from Hugging Face
|
31 |
+
RUN git clone https://huggingface.co/BAAI/bge-small-en-v1.5
|
32 |
+
|
33 |
+
|
34 |
# Set the default command to run your app
|
35 |
+
CMD ["--model-id", "BAAI/bge-small-en-v1.5", "--port", "7860"]
|
36 |
|