mgc_Michal
Problem with building WordPress Dockerfile - not copying wp-content directory
I've found something in docs: https://docs.railway.app/guides/volumes
Volume Availability
Volumes are mounted to your service's container when it is started, not during build time.
If you write data to a directory at build time, it will not persist on the volume, even if it writes to the directory to which you have mounted the volume.
Volumes are not mounted as overlays.
So I need to copy the directory to Docker image from my repository during the build, how can I overcome that?
10 replies