This is a terrifying elementary question.

Use the dockerfile of ubuntu 18.04 environment.
I want to install opencv with apt-get there,

  1. Will opencv be installed in docker if I specify opencv install command in RUN according to this site?

  2. Basically, as a procedure to write a dockerfile when installing a library in the ubuntu environment, is it possible to install it in docker if the command to install in a normal ubuntu environment is specified in the dockerfile with RUN etc. in the same way?

I'm sorry in the beginning, thanks for your answer