Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-10619

[opendatahub-io/base-containers] chore: expand .dockerignore to exclude test/dev files from build context

    • False
    • Hide

      None

      Show
      None
    • False
    • DP Sprint 27

      [3959348390] Upstream Reporter: smoparth
      Upstream issue status: Closed
      Upstream description:

      The current `.dockerignore` excludes version control, CI, docs, and IDE files. We can also ignore the following to reduce the build context which will keep the build caches effective and reduce the build time.

      Path What it is Size impact
      ------ ----------- -------------
      `tests/` Pytest test suite Small, but unnecessary
      `.tox/` tox virtualenvs and caches *Can be 100s of MB* if tox has been run locally
      `pyproject.toml` Python project config (for linting/tests, not the image) Tiny
      `tox.ini` tox configuration Tiny
      `.hadolint.yaml` Hadolint linter config Tiny
      `*.egg-info/` Python egg-info from editable installs Small
      `_pycache_/` Python bytecode caches Small
      `renovate.json` Renovate bot config Tiny

              rh-ee-shikhan Shifa Khan
              upstream-sync Upstream Sync
              Antonio's Team
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: