-
Bug
-
Resolution: Fixed
-
Normal
-
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.