Copying plugin folder to WordPress default image directory and creating a new image. Pushing it to the repository on Docker Hub, then pull back image and run the container, but the plugin is not installed. Folder is not found in the container.
docker-compose.yml
version: '3.3'
services:
wp:
image: "arslanliaqat/wordpresswithplugin:1.0"
volumes:
- './wordpress:/var/www/html'
ports:
- "8000:80"
environment:
WORDPRESS_DB_PASSWORD: qwerty
mysql:
image: "mysql:5.7"
environment:
MYSQL_ROOT_PASSWORD: qwerty
volumes:
- "my-datavolume:/var/lib/mysql"
volumes:
my-datavolume:
Dockerfile
FROM wordpress:php7.1-apache
COPY preferred-languages /var/www/html/wp-content/plugins/preferred-languages/
could not pre-install plugin