Browse Source

php: use production settings

Fabian Peter Hammerle 5 years ago
parent
commit
d5909c6716
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -39,10 +39,11 @@ RUN a2disconf other-vhosts-access-log
 COPY ./apache2.conf /etc/apache2/apache2.conf
 RUN chmod o+r /etc/apache2/apache2.conf
 EXPOSE 8080
+# https://github.com/docker-library/docs/blob/master/php/README.md
+RUN mv $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini
 COPY --from=js-build /koel /koel
 WORKDIR /koel
 RUN chown --changes --recursive www-data .env storage/
-# TODO production php.ini
 COPY ./run-koel.sh /
 RUN chmod o+rx /run-koel.sh
 USER www-data