Installing plugins on Strapi V4 using Docker

System Information
  • Strapi Version: 4.7.1
  • Operating System: macOS Ventura 13.1
  • Database: mysql
  • Node Version: 16
  • NPM Version: 6.14.16
  • Yarn Version:

I have installed Strapi v4.7.1 using Docker following this great tutorial from Simen Daehlin: Docker with Strapi V4

Everything works perfect, but how can I install plugins in such Docker environment? I’ve followed these instructions to install plugins:

Step 1) npm install strapi-plugin-name
Step 2) npm run build

It installs the plugins without errors, I even see them in the package.json file. But they don’t appear on the Strapi admin’s UI.

Any ideas how can I do this? Thanks

Update: I’m not sure if this is the best way to do it but it helped me get the job done, so I’ll leave it here in case someone finds it useful.

To install plug-ins in Strapi v4 using Docker with MySQL:

  1. stop your strapi docker container
  2. cd into you strapi app’s root directory and run npm install strapi-plugin-name
  3. build the image docker build -t my-strapi-app:latest .
  4. build the containers docker-compose up -d