未验证 提交 b6090b03 编写于 作者: Q quicksilver 提交者: GitHub

Remove docker-entrypoint.sh in Dockerfile (#2586)

Signed-off-by: Nquicksilver <zhifeng.zhang@zilliz.com>
上级 4ce1e6b2
......@@ -20,15 +20,12 @@ RUN yum install -y wget && \
rm -rf /var/cache/yum/*
COPY ./milvus /var/lib/milvus
COPY ./docker-entrypoint.sh /var/lib/milvus/
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/var/lib/milvus/lib"
COPY --from=openblas /usr/lib/libopenblas*.so* /var/lib/milvus/lib/
WORKDIR /var/lib/milvus
ENTRYPOINT [ "/var/lib/milvus/docker-entrypoint.sh" ]
CMD [ "start" ]
CMD [ "/var/lib/milvus/bin/milvus_server", "-c", "/var/lib/milvus/conf/server_config.yaml" ]
EXPOSE 19530
......@@ -19,13 +19,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
COPY ./milvus /var/lib/milvus
COPY ./docker-entrypoint.sh /var/lib/milvus
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/var/lib/milvus/lib"
WORKDIR /var/lib/milvus
ENTRYPOINT [ "/var/lib/milvus/docker-entrypoint.sh" ]
CMD [ "start" ]
CMD [ "/var/lib/milvus/bin/milvus_server", "-c", "/var/lib/milvus/conf/server_config.yaml" ]
EXPOSE 19530
......@@ -21,16 +21,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
COPY ./milvus /var/lib/milvus
COPY ./docker-entrypoint.sh /var/lib/milvus/
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/var/lib/milvus/lib"
COPY --from=openblas /usr/lib/libopenblas*.so* /var/lib/milvus/lib/
WORKDIR /var/lib/milvus
ENTRYPOINT [ "/var/lib/milvus/docker-entrypoint.sh" ]
CMD [ "start" ]
CMD [ "/var/lib/milvus/bin/milvus_server", "-c", "/var/lib/milvus/conf/server_config.yaml" ]
EXPOSE 19530
#!/bin/bash
set -e
if [ "$1" == 'start' ]; then
cd /var/lib/milvus/scripts && ./start_server.sh
fi
exec "$@"
......@@ -22,15 +22,12 @@ RUN yum --disablerepo=cuda install -y wget && \
rm -rf /var/cache/yum/*
COPY ./milvus /var/lib/milvus
COPY ./docker-entrypoint.sh /var/lib/milvus/
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/var/lib/milvus/lib"
COPY --from=openblas /usr/lib/libopenblas*.so* /var/lib/milvus/lib/
WORKDIR /var/lib/milvus
ENTRYPOINT [ "/var/lib/milvus/docker-entrypoint.sh" ]
CMD [ "start" ]
CMD [ "/var/lib/milvus/bin/milvus_server", "-c", "/var/lib/milvus/conf/server_config.yaml" ]
EXPOSE 19530
......@@ -23,14 +23,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
COPY ./milvus /var/lib/milvus
COPY ./docker-entrypoint.sh /var/lib/milvus
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/var/lib/milvus/lib"
WORKDIR /var/lib/milvus
ENTRYPOINT [ "/var/lib/milvus/docker-entrypoint.sh" ]
CMD [ "start" ]
CMD [ "/var/lib/milvus/bin/milvus_server", "-c", "/var/lib/milvus/conf/server_config.yaml" ]
EXPOSE 19530
......@@ -25,16 +25,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
COPY ./milvus /var/lib/milvus
COPY ./docker-entrypoint.sh /var/lib/milvus/
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/var/lib/milvus/lib"
COPY --from=openblas /usr/lib/libopenblas*.so* /var/lib/milvus/lib/
WORKDIR /var/lib/milvus
ENTRYPOINT [ "/var/lib/milvus/docker-entrypoint.sh" ]
CMD [ "start" ]
CMD [ "/var/lib/milvus/bin/milvus_server", "-c", "/var/lib/milvus/conf/server_config.yaml" ]
EXPOSE 19530
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册