Dockerfile 834 B

1234567891011121314151617181920212223242526272829
  1. FROM python:3.8-buster
  2. RUN apt-get update && apt-get install -y jq
  3. # Define the ARG variable
  4. ARG PIP_TRUSTED_HOST=""
  5. ARG PIP_INDEX_URL=""
  6. ARG PIP_INDEX=""
  7. ARG PIP_FIND_LINKS=""
  8. # Set the ENV variable
  9. ENV PIP_TRUSTED_HOST=${PIP_TRUSTED_HOST}
  10. ENV PIP_INDEX_URL=${PIP_INDEX_URL}
  11. ENV PIP_INDEX=${PIP_INDEX}
  12. ENV PIP_FIND_LINKS=${PIP_FIND_LINKS}
  13. WORKDIR /milvus
  14. COPY tests/python_client/requirements.txt tests/python_client/requirements.txt
  15. RUN cd tests/python_client && python3 -m pip install --upgrade setuptools \
  16. && python3 -m pip install --upgrade pip \
  17. && python3 -m pip install --no-cache-dir -r requirements.txt --timeout 30 --retries 6
  18. COPY tests/python_client tests/python_client
  19. COPY tests/restful_client tests/restful_client
  20. COPY tests/restful_client_v2 tests/restful_client_v2
  21. COPY tests/scripts tests/scripts