Open kevinquillen opened 2 years ago
As I see it, this is something that happens at the following lines: https://github.com/wodby/php/blob/master/7/docker-entrypoint.sh#L80 https://github.com/wodby/php/blob/master/8/docker-entrypoint.sh#L79
To overcome this problem, I took the ssh_config.tmpl
from https://github.com/wodby/php/tree/master/7/templates and moved it to a folder in my setup, outside the containers. I added there all the custom configurations we needed for specific domains.
Then I mount it as a volume like below
volumes:
- ./config/ssh_config.tmpl:/etc/gotpl/ssh_config.tmpl:cached
Now, it always has the necessary data we need. Hope that helps.
Another workaround for those who extend the image.
RUN sed -i '/ssh_config.tmpl/d' /docker-entrypoint.sh
I am trying to mount a .ssh/config file that contains:
But when the container is restarted, the file contents are replaced with boilerplate:
Using PHP tag: 8.0-dev-4.35.0