Uploaded image for project: 'Cover Crop'
  1. Cover Crop
  2. CCROP-370

Service docker build not allowing python layer to overlay java base image

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.5
    • None
    • None
    • None

      We are using the Java image as the base layer and copying python layer on top; however, this only works for openjdk:slim. Due to our gdal requirements, we need to specify openjdk:14-slim and the following error is given:

      #6 [stage-0 2/8] COPY --from=python:3.8-slim / /
      #6 sha256:3d7928f567d848bacecdbd74c8165a01f334c2ef279dfb24a5eeb64a2fe9d4c5
      #6 ERROR: cannot copy to non-directory: /var/lib/docker/aufs/mnt/m4iyf20tdwaulckq5fcgtx0fx/usr/share/doc/perl-base
      ------
       > [stage-0 2/8] COPY --from=python:3.8-slim / /:
      ------
      cannot copy to non-directory: /var/lib/docker/aufs/mnt/m4iyf20tdwaulckq5fcgtx0fx/usr/share/doc/perl-base

       

      The recommended fix is to use Java as the base layer and install python into the container.

              cnavarro Christopher Navarro
              cnavarro Christopher Navarro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: