Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
@@ -12,13 +12,24 @@ RUN apt-get update && \
|
|
12 |
ca-certificates \
|
13 |
gnupg \
|
14 |
lsb-release \
|
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 |
|
23 |
# Expose the default Milvus port
|
24 |
EXPOSE 19530
|
|
|
12 |
ca-certificates \
|
13 |
gnupg \
|
14 |
lsb-release \
|
15 |
+
sudo \
|
16 |
+
apt-transport-https && \
|
17 |
rm -rf /var/lib/apt/lists/*
|
18 |
|
19 |
+
# Install Docker inside the container
|
20 |
+
RUN mkdir -m 0755 -p /etc/apt/keyrings && \
|
21 |
+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo tee /etc/apt/keyrings/docker.gpg > /dev/null && \
|
22 |
+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null && \
|
23 |
+
apt-get update && \
|
24 |
+
apt-get install -y docker-ce docker-ce-cli containerd.io
|
25 |
+
|
26 |
# Copy the existing standalone_embed.sh script into the container
|
27 |
COPY standalone_embed.sh /standalone_embed.sh
|
28 |
RUN chmod +x /standalone_embed.sh
|
29 |
|
30 |
+
# Set appropriate permissions for Milvus configuration files
|
31 |
+
RUN touch embedEtcd.yaml user.yaml && \
|
32 |
+
chmod 666 embedEtcd.yaml user.yaml
|
33 |
|
34 |
# Expose the default Milvus port
|
35 |
EXPOSE 19530
|