Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -10
Dockerfile
CHANGED
@@ -15,18 +15,12 @@ RUN apt-get update && \
|
|
15 |
sudo && \
|
16 |
rm -rf /var/lib/apt/lists/*
|
17 |
|
18 |
-
#
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
# Install Milvus standalone with the provided script
|
23 |
-
# RUN curl -sfL https://raw.githubusercontent.com/milvus-io/milvus/master/scripts/standalone_embed.sh -o standalone_embed.sh && \
|
24 |
-
# chmod +x standalone_embed.sh && \
|
25 |
-
# ./standalone_embed.sh install && \
|
26 |
-
# rm -f standalone_embed.sh
|
27 |
|
28 |
# Expose the default Milvus port
|
29 |
EXPOSE 19530
|
30 |
|
31 |
# Start Milvus on container startup
|
32 |
-
CMD ["bash", "-c", "
|
|
|
15 |
sudo && \
|
16 |
rm -rf /var/lib/apt/lists/*
|
17 |
|
18 |
+
# Copy the existing standalone_embed.sh script into the container
|
19 |
+
COPY standalone_embed.sh /standalone_embed.sh
|
20 |
+
RUN chmod +x /standalone_embed.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
# Expose the default Milvus port
|
23 |
EXPOSE 19530
|
24 |
|
25 |
# Start Milvus on container startup
|
26 |
+
CMD ["bash", "-c", "/standalone_embed.sh start && tail -f /dev/null"]
|