Dockerfile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Licensed to the LF AI & Data foundation under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http:#www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. FROM python:3.6.8-jessie
  17. SHELL ["/bin/bash", "-o", "pipefail", "-c"]
  18. RUN apt-get update && apt-get install -y --no-install-recommends wget apt-transport-https && \
  19. wget -qO- "https://get.helm.sh/helm-v3.6.1-linux-amd64.tar.gz" | tar --strip-components=1 -xz -C /usr/local/bin linux-amd64/helm && \
  20. wget -P /tmp https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg && \
  21. apt-key add /tmp/apt-key.gpg && \
  22. sh -c 'echo deb https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main > /etc/apt/sources.list.d/kubernetes.list' && \
  23. apt-get update && apt-get install -y --no-install-recommends \
  24. build-essential kubectl && \
  25. apt-get remove --purge -y && \
  26. rm -rf /var/lib/apt/lists/*
  27. COPY requirements.txt /requirements.txt
  28. RUN python3 -m pip install --no-cache-dir -r /requirements.txt
  29. WORKDIR /root