Hi I am passing Dockerfile as an argument in docke...
# prefect-server
g
Hi I am passing Dockerfile as an argument in docker run , where I mention to copy all my helper files in current directory, but when i run the flow it says , unable to import the file
a
@Gagan Singh Saluja 1. Can you explain what you mean by docker run? Do you mean that you use Docker storage and you run “prefect register”? 2. Can you share the output of “prefect diagnostics”? 3. What agent do you use? 4. Can you share your definition of storage and run configuration? 5. Can you share your Dockerfile and how you build the image?
g
Im using docker storage, ecs run,ecs agent, im simply passing dockerfile in the docker storage
@Anna Geller please help!!
a
@Gagan Singh Saluja Sure 🙂 in general, I believe it’s better to install your custom modules within the Dockerfile rather than relying on PYTHONPATH, because it’s much more reliable. This blog post explains how to do it. Additionally, this repo provides an example of a Dockerfile incl. commands to build it and push to ECR and how it can be used e.g. with ECSRun.