-1

I have a Docker container that when run, starts a single Python script. On my local machine, the Python script executes without issue. However, the script is unable to find the relevant library files (no external libraries, part of my own repo) that I've confirmed do exist within the container.

Error: enter image description here

Directory Structure Inside Container:

enter image description here

Dockerfile: enter image description here

Import Statements: enter image description here

The repository does contain multiple Dockerfiles in different directories for easier deployment, but removing them did not change this behavior.

Tyler Mills
  • 353
  • 1
  • 3
  • 15

1 Answers1

0

Adding sys.path.append("/tmp/") fixed the issue (the directory containing the upper most directory referenced in the import statements).

Tyler Mills
  • 353
  • 1
  • 3
  • 15