Joseph Haaga
11/12/2020, 4:02 PMDockerStorage.create_dockerfile_object(directory)
contains a COPY statement to add healthcheck.py
to the image, but uses an absolute path (which docker build
treats as a relative path from the build context)
COPY /absolute/path/on/my/machine/healthcheck.py /opt/prefect/healthcheck.py
This causes the following error:
Step 6/16 : COPY /absolute/path/on/my/machine/healthcheck.py /opt/prefect/healthcheck.py
COPY failed: stat /var/lib/docker/tmp/docker-builder852791584/absolute/path/on/my/machine/healthcheck.py: no such file or directory
However, this works fine when I manually update the Dockerfile to use a relative path to healthcheck.py
Would this constitute an issue? Or am I circumventing an intentional design decision?Dylan