Example found on GitHub:
FROM "xxx"/nginx-php-fpm:php73
MAINTAINER "xxx"
# Remove existing webroot, configure PHP session handler for Redis, install postgresql-client (pg_dump)
RUN rm -rf /usr/share/nginx/* && \
sed -i -e "s/memory_limit\s*=\s*.*/memory_limit = 256M/g" ${php_conf} && \
...
As I have understood the meaning of OPTIONS:
-i
: "where to edit" and
-e
: "script to be executed"
My question is: What does this line do?
sed -i -e "s/memory_limit\s*=\s*.*/memory_limit = 256M/g" ${php_conf}
When I try to run the line the response is: sed: no input files
How does it understand the ${php_conf}
?