mirror of https://github.com/knative/docs.git
serving/samples/helloworld-php: use development php.ini (#699)
* serving/samples/helloworld-php: use development php.ini * serving/samples/helloworld-php: update README
This commit is contained in:
parent
e801cd1a18
commit
72f1777628
|
@ -8,6 +8,12 @@ COPY index.php /var/www/html/
|
|||
# Use the PORT environment variable in Apache configuration files.
|
||||
RUN sed -i 's/80/${PORT}/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf
|
||||
|
||||
# Configure PHP for development.
|
||||
# Switch to the production php.ini for production operations.
|
||||
# RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
# https://hub.docker.com/_/php#configuration
|
||||
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
# Configure and document the service HTTP port.
|
||||
ENV PORT 8080
|
||||
EXPOSE $PORT
|
||||
|
|
|
@ -47,6 +47,12 @@ recreate the source files from this folder.
|
|||
# Use the PORT environment variable in Apache configuration files.
|
||||
RUN sed -i 's/80/${PORT}/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf
|
||||
|
||||
# Configure PHP for development.
|
||||
# Switch to the production php.ini for production operations.
|
||||
# RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
# https://hub.docker.com/_/php#configuration
|
||||
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
# Configure and document the service HTTP port.
|
||||
ENV PORT 8080
|
||||
EXPOSE $PORT
|
||||
|
|
Loading…
Reference in New Issue