File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ ENV XDEBUG_REMOTE_PORT=9000
21
21
ENV PHP_EXTENSION_WDDX=1
22
22
ENV PHP_OPENSSL=1
23
23
24
- ENV CONTAINER_STARTED_LOCK=/var/lock/container.started
24
+ ENV CONTAINER_STARTED_LOCK=/var/lock/container.starting
25
25
26
26
RUN apt-get update && apt-get install -y --no-install-recommends wget vim supervisor libfreetype6-dev libjpeg-dev libjpeg62-turbo-dev \
27
27
libmcrypt-dev libpng-dev libssl-dev libaio1 git libcurl4-openssl-dev libxslt-dev \
@@ -91,7 +91,7 @@ COPY configs/php-errors.ini /usr/local/etc/php/conf.d/php-errors.ini
91
91
COPY apache-run.sh /usr/bin/apache-run
92
92
COPY ./bin /usr/bin/
93
93
94
- RUN touch /usr/bin/post-startup-hook && chmod a+x \
94
+ RUN chmod a+x \
95
95
/usr/bin/apache-run \
96
96
/usr/bin/xdebug-set-mode \
97
97
/usr/bin/post-startup-hook
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
if [[ ${OPCACHE_ENABLED} == true ]]; then
4
- echo " opcache.enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
4
+ echo " opcache.enable=1" | tee -a /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
5
5
echo " opcache.max_accelerated_files=$( echo $[ 1000 + $( find . -type f -name " *.php" | wc -l) ]) " >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
6
6
else
7
- echo " opcache.enable=0" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
7
+ echo " opcache.enable=0" | tee -a /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
8
8
fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # substituir pelas ações necessárias após o startup base
You can’t perform that action at this time.
0 commit comments