Created
May 20, 2024 01:30
-
-
Save faywong/c8d043eb5e74b5540bb547eabe4555d8 to your computer and use it in GitHub Desktop.
docker file for milvus-lite maca version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 前置条件: cp -rf /opt/maca .; cp -rf test_milvus .; cp milvus-2.3.13-py3-none-manylinux2014_x86_64.whl . | |
FROM ubuntu:20.04 | |
# 将本地的 milvus-2.3.13-py3-none-manylinux2014_x86_64.whl 文件复制到镜像的 /tmp/ 目录下 | |
COPY milvus-2.3.13-py3-none-manylinux2014_x86_64.whl /tmp/ | |
COPY example.py /tmp/ | |
COPY test_milvus /tmp/test_milvus | |
RUN mkdir -p /opt | |
COPY maca /opt/maca | |
# 创建一个新用户并将其添加到video组中 | |
RUN usermod -a -G video root | |
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && apt-get install -y python3 python3-pip vim libgflags-dev libgoogle-glog-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev libnuma-dev && pip3 install pymilvus && update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && pip3 install --user /tmp/milvus-2.3.13-py3-none-manylinux2014_x86_64.whl | |
WORKDIR /tmp | |
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/test_milvus/bin:/opt/maca/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
运行:
后的 crash 日志: