Start from line 79.
1.
Why don't you use the dockerfile.fix method to build the docker image?
Are the dockerfile.original and dockerfile.fix same step to build docker image?
2.
What is the advantage of the dockerfile.original method (a chain of FROM xxx AS xxx)?
dockerfile.original
FROM ubuntu:18.04 AS copy_openvino
RUN cmd (copy_openvino) ...
FROM copy_openvino AS openvino
RUN cmd (openvino) ...
FROM openvino AS opencv
RUN cmd (opencv) ...
FROM opencv as openvino_repo
RUN cmd (openvino_repo) ...
dockerfile.fix
comment the redundant FROM xxx AS xxx
FROM ubuntu:18.04 AS copy_openvino
RUN cmd (copy_openvino) ...
# FROM copy_openvino AS openvino
RUN cmd (openvino) ...
# FROM openvino AS opencv
RUN cmd (opencv) ...
# FROM opencv as openvino_repo
RUN cmd (openvino_repo) ...
The dockerfile is very great. https://github.com/openvinotoolkit/docker_ci/blob/master/dockerfiles/ubuntu18/build_custom/Dockerfile
Start from line 79.
1. Why don't you use the
dockerfile.fix
method to build the docker image? Are thedockerfile.original
anddockerfile.fix
same step to build docker image? 2. What is the advantage of thedockerfile.original
method (a chain of FROM xxx AS xxx)?dockerfile.original
dockerfile.fix
comment the redundant FROM xxx AS xxx