unable to install mysql2 gem

i have a Rails app with mysql2 gem as DB for Active Record.
after deploy my app to fly with fly deploy i have this error during deploy logs

#14 9.243 An error occurred while installing mysql2 (0.5.4), and Bundler cannot continue.
#14 9.243
#14 9.243 In Gemfile:
#14 9.243   mysql2

how can i do to install this gem, i have a remote mysql DB


In your Dockerfile, Add default-libmysqlclient-dev to BUILD_PACKAGES and default-mysql-client to DEPLOY_PACKAGES.

1 Like

Thanks, work fine i have just deploy my first fly.io app :heart_eyes: