Spaces:
Runtime error
Runtime error
# 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 && \ | |
rm -rf /var/lib/apt/lists/* | |
# Install Docker in the container (to use Docker CLI if needed) | |
RUN apt-get update && \ | |
apt-get install -y docker.io | |
# Install Milvus standalone with the provided script | |
RUN curl -sfL https://raw.githubusercontent.com/milvus-io/milvus/master/scripts/standalone_embed.sh -o standalone_embed.sh && \ | |
chmod +x standalone_embed.sh && \ | |
./standalone_embed.sh install && \ | |
rm -f standalone_embed.sh | |
# Expose the default Milvus port | |
EXPOSE 19530 | |
# Start Milvus on container startup | |
CMD ["bash", "-c", "./standalone_embed.sh start && tail -f /dev/null"] | |