I dockerized my application, so I sent my files in the image with the COPY command in dockerfile
Here my dockerfile
FROM wordpress:php7.4-apache
COPY ./site /var/www/html
RUN chmod -R 777 /var/www/html/wp-content
ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0"
When I use the image with docker-compose and when I link the volume with my local directory I do not recover the files I had sent during the creation of the image
Here my docker-compose.yml file
version: "3.8"
services:
ict:
image: name_of_my_new_image
volumes:
- .:/var/www/html
ports:
- 80:80
restart: always
Anyone have a solution please?