php - How to "dynamize" Dockerfile / Docker Compose?
I'm Dockerizing legacy PHP project. I would like to have Xdebug enabled in development environment and my Dockerfile copies pre-built php.ini into container.
Due to some network issues we have to have
xdebug.remote_connect_back = 0 on Mac OS X (and corresponding
xdebug.remote_host = docker.for.mac.localhost) and
xdebug.remote_connect_back = 1 on Linux.
Is it possible to grab current OS type in Dockerfile/Docker Compose to copy php.ini corresponding to host OS?