I have managed to get my fairly complicated python application to build even though it contains pandas and numpy. However I noticed that whenever I try and run it on google/cloud-sdk:slim docker image it fails. I traced it down to even hello world application failing without any error other than below
error instantiating embedded Python interpreter: during initializing Python main: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Dockerfile.txt
Here is a docker file that builds a helloworld application using python 3.8 on the manylinux build docker and then runs it inside google/cloud-sdk:slim as a minimal repeatable error. I have not tried other python versions yet or other build instances nor using musl as I cannot make standalones with numpy
I have managed to get my fairly complicated python application to build even though it contains pandas and numpy. However I noticed that whenever I try and run it on google/cloud-sdk:slim docker image it fails. I traced it down to even hello world application failing without any error other than below
Dockerfile.txt Here is a docker file that builds a helloworld application using python 3.8 on the manylinux build docker and then runs it inside google/cloud-sdk:slim as a minimal repeatable error. I have not tried other python versions yet or other build instances nor using musl as I cannot make standalones with numpy