File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1
1
FROM lojassimonetti/php-apache-oci8-composer:php8dot3
2
2
3
+ COPY ./bin /usr/bin/
4
+
3
5
USER root
4
6
5
7
RUN echo "---> Swoole" && \
6
8
pecl install swoole && \
9
+ docker-php-ext-configure swoole --enable-http2 && \
7
10
docker-php-ext-enable swoole
8
11
9
12
USER www-data:www-data
13
+
14
+ CMD ["/tini" , "--" , "/usr/bin/swoole-run" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ rm -f $CONTAINER_STARTED_LOCK
4
+
5
+ if [[ ${XDEBUG_ENABLED} == true ]]; then
6
+ sudo -E xdebug-set-mode ${XDEBUG_MODE:- debug}
7
+ fi
8
+
9
+ sudo -E newrelic-setup
10
+ sudo -E opcache-setup
11
+
12
+ if [[ ${SESSION_HANDLER} == true ]]; then
13
+ sudo rm -f /usr/local/etc/php/conf.d/session-handler.ini
14
+ echo " session.save_handler = ${SESSION_HANDLER_NAME} " | sudo tee -a /usr/local/etc/php/conf.d/session-handler.ini
15
+ echo " session.save_path = \" ${SESSION_HANDLER_PATH} \" " | sudo tee -a /usr/local/etc/php/conf.d/session-handler.ini
16
+ fi
17
+
18
+ sudo rm -rf var/cache/* var/logs/* &&
19
+ sudo mkdir -p /var/www/html/var/cache &&
20
+ sudo mkdir -p /var/www/html/var/logs &&
21
+ sudo mkdir -p /var/www/html/var/sessions &&
22
+ sudo chown -R www-data:www-data /var/www/html/var/cache && chmod 777 /var/www/html/var/cache &&
23
+ sudo chown -R www-data:www-data /var/www/html/var/logs && chmod 777 /var/www/html/var/logs &&
24
+ sudo chown -R www-data:www-data /var/www/html/var/sessions && chmod 777 /var/www/html/var/sessions
25
+
26
+ post-startup-hook
27
+
28
+ touch $CONTAINER_STARTED_LOCK
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ pre-run
6
+
7
+ exec /usr/local/bin/php /var/www/html/server.php
You can’t perform that action at this time.
0 commit comments