I am working on a task that involves building a docker image with centOs as its base using a Dockerfile . One of the steps inside the docke
I faced the same situation.
According to Sin30's answer pretty solution is using shell,
CMD ["sh", "-c", "cd /usr/local/etc/php && ln -sf php.ini-$APP_ENV php.ini"]