Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openvino dockerfile build #291

Open
foxnight2 opened this issue Oct 19, 2023 · 0 comments
Open

openvino dockerfile build #291

foxnight2 opened this issue Oct 19, 2023 · 0 comments
Assignees

Comments

@foxnight2
Copy link

foxnight2 commented Oct 19, 2023

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 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) ...
@ilya-lavrenov ilya-lavrenov transferred this issue from openvinotoolkit/openvino Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants