mgc_Michal
mgc_Michal
RRailway
Created by mgc_Michal on 11/4/2024 in #✋|help
Problem with building WordPress Dockerfile - not copying wp-content directory
project ID: 0be14315-9da9-49bc-b246-f1ec0bd7cfad I have a problem with deployment of Wordpress project. It has two services - MySQL database and WordPress service build from Github repository. I have created a Dockerfile for a WordPress Service: FROM wordpress:6.6.1-php8.2 COPY wp-content/ ./wp-content RUN chown -R www-data:www-data /var/www/html/wp-content RUN find /var/www/ -type d -exec chmod 0755 {} ; RUN find /var/www/ -type f -exec chmod 644 {} ; The problem is that the Docker does not copy wp-content directory to container while deploying to Railway. Why is that? How can I fix this? The wp-content directory is present in github repository. It works fine on local env.
10 replies