Report Kubernetes cluster and pod resource requests vs usage and generate static HTML
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
543 B

  1. FROM python:3.8-slim
  2. WORKDIR /
  3. RUN pip3 install poetry
  4. COPY poetry.lock /
  5. COPY pyproject.toml /
  6. RUN poetry config virtualenvs.create false && \
  7. poetry install --no-interaction --no-dev --no-ansi
  8. FROM python:3.8-slim
  9. WORKDIR /
  10. COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
  11. COPY kube_resource_report /kube_resource_report
  12. ARG VERSION=dev
  13. RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" /kube_resource_report/__init__.py
  14. ENTRYPOINT ["python3", "-m", "kube_resource_report"]