Docker bundle exec rails assets:precompile issue

I’m a junior try to deploy on docker for first-time, I have setuped the app with bootstrap I run docker-compose build and I got this

=> ERROR [8/8] RUN SECRET_KEY_BASE_DUMMY=1 bundle exec rails assets:precompile     1.7s
 > [8/8] RUN SECRET_KEY_BASE_DUMMY=1 bundle exec rails assets:precompile:
#0 1.602 Parsing scenario file install
#0 1.602 ERROR: [Errno 2] No such file or directory: 'install'
#0 1.616 rails aborted!
#0 1.616 cssbundling-rails: Command css:build failed, ensure yarn is installed and `yarn build:css` runs without errors
#0 1.616 
#0 1.616 Tasks: TOP => assets:precompile => css:build
#0 1.616 (See full trace by running task with --trace)
failed to solve: executor failed running [/bin/sh -c SECRET_KEY_BASE_DUMMY=1 bundle exec rails assets:precompile]: exit code: 1

I run yarn install and got the same error

Did you find out the answer?

Maybe you didn’t install yarn in your docker image.