I'm working on using the Dockerfile method to crea...
# prefect-community
a
I'm working on using the Dockerfile method to create Docker storage using prefect 10.1. I believe I am running into an issue due to python pathing on windows.
prefect.environments.storage.docker._build_image()
creates a temporary directory that it uses for the docker build context. However, later docker reports that it cannot find this directory. Simply changing it to an absolute path resolves this error.
This ends up creating an issue with this is the generated Dockerfile doesn't escape the windows path separators, resulting in a failed COPY command
If the dockerfile argument is not passed in (such as when using the interim docker image method), then
TemporaryDirectory(None)
is called, which results in a full path as shown below
z
Hi Adam! I don't have a solution off the top of my head, but I'm asking around the team and will get back to you ASAP.
a
For now, I will continue using the method of creating the interim docker image
z
Sounds good. Following up on advice from the team: this does appear to be a bug. If you don't mind opening an issue with a reproducible example, we can get this fixed for our next release.