Spaces:
Runtime error
Runtime error
File size: 1,294 Bytes
166d06d 8d1a216 166d06d 8d1a216 166d06d 2a64b8f 166d06d 8d1a216 2a64b8f a48629c 4b50b31 a90782d 2a64b8f 8d1a216 166d06d 4b50b31 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# Use an official Ubuntu base image
FROM ubuntu:20.04
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Jakarta
# Install dependencies
RUN apt-get update && \
apt-get install -y \
curl \
ca-certificates \
gnupg \
lsb-release \
sudo \
apt-transport-https && \
rm -rf /var/lib/apt/lists/*
# Install Docker inside the container
RUN mkdir -m 0755 -p /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo tee /etc/apt/keyrings/docker.gpg > /dev/null && \
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 && \
apt-get update && \
apt-get install -y docker-ce docker-ce-cli containerd.io
# Copy the existing standalone_embed.sh script into the container
COPY standalone_embed.sh /standalone_embed.sh
RUN chmod +x /standalone_embed.sh
# Set appropriate permissions for Milvus configuration files
RUN touch embedEtcd.yaml user.yaml && \
chmod 666 embedEtcd.yaml user.yaml
# Expose the default Milvus port
EXPOSE 19530
# Start Milvus on container startup
CMD ["bash", "-c", "/standalone_embed.sh start && tail -f /dev/null"]
|