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
Since my Docker image run as non root user, I have added a variable RAILWAY_RUN_UID=0 to my service but application still cannot write to the volume.
10 replies
RRailway
Created by mgc_Michal on 11/4/2024 in #✋|help
Problem with building WordPress Dockerfile - not copying wp-content directory
But that does not satisfy me, because someone might upload an image to the directory and after deployment it will be erased
10 replies
RRailway
Created by mgc_Michal on 11/4/2024 in #✋|help
Problem with building WordPress Dockerfile - not copying wp-content directory
It works when I detached the volume from WordPress Service...
10 replies
RRailway
Created by Nyn on 11/5/2024 in #✋|help
DBGate and connecting to MySql Db
No description
11 replies
RRailway
Created by mgc_Michal on 11/4/2024 in #✋|help
Problem with building WordPress Dockerfile - not copying wp-content directory
Could you please show me an example how can I copy wp-content directory from github repository to my volume during runtime?
10 replies
RRailway
Created by mgc_Michal on 11/4/2024 in #✋|help
Problem with building WordPress Dockerfile - not copying wp-content directory
How?
10 replies
RRailway
Created by mgc_Michal on 11/4/2024 in #✋|help
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