File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ COPY scripts/allow-composer-plugins.php scripts/allow-composer-plugins.php
20
20
COPY scripts/remove-paypal-braintree.php scripts/remove-paypal-braintree.php
21
21
COPY scripts/patch-AC2855.php scripts/patch-AC2855.php
22
22
COPY templates/memory-limit-php.ini /usr/local/etc/php/conf.d/memory-limit-php.ini
23
+ COPY templates/supervisord-webserver.conf /etc/supervisor/conf.d/webserver.conf
23
24
24
25
RUN set -e; \
25
26
./start-services && \
Original file line number Diff line number Diff line change 3
3
# Comes from the parent image
4
4
./start-services
5
5
6
- nohup /usr/local/bin/php -S 0.0.0.0:80 -t /data/pub/ /data/phpserver/router.php &
7
- status=$?
8
- if [ $status -ne 0 ]; then
9
- echo " Failed to start the php server: $status "
10
- exit $status
11
- fi
12
-
13
6
if [ -n " $URL " ] && [ " $URL " != " http://localhost/" ]; then
14
7
echo " Updating Base URL"
15
8
magerun2 config:store:set web/unsecure/base_url $URL
Original file line number Diff line number Diff line change
1
+ [program:webserver]
2
+ command=/usr/local/bin/php -S 0.0.0.0:80 -t /data/pub/ /data/phpserver/router.php
3
+ autorestart=true
You can’t perform that action at this time.
0 commit comments