File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191 sed -i 's/^;pm\. max_requests = .*/pm.max_requests = 50/g' /etc/php/8.3/fpm/pool.d/www.conf && \
9292 sed -i 's/^;request_terminate_timeout = .*/request_terminate_timeout = 7200/g' /etc/php/8.3/fpm/pool.d/www.conf
9393
94- COPY container /rsyslogd/rsyslog.conf /etc/rsyslog.conf
95- COPY container /supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
94+ COPY image /rsyslogd/rsyslog.conf /etc/rsyslog.conf
95+ COPY image /supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
9696RUN \
9797 mkdir -p /run/php && chmod 777 /run/php
9898
@@ -107,8 +107,8 @@ RUN \
107107 apt-get update
108108
109109# ## drupal download
110- COPY container /drupal-download.sh /tmp
111- COPY container /drupalmodule-download.sh /tmp
110+ COPY image /drupal-download.sh /tmp
111+ COPY image /drupalmodule-download.sh /tmp
112112RUN \
113113 chmod +x /tmp/drupal-download.sh && \
114114 chmod +x /tmp/drupalmodule-download.sh
@@ -122,8 +122,11 @@ RUN \
122122
123123# ## Add drupal 10 related drush
124124RUN \
125- cd /var/www/html && composer update && composer require drush/drush
125+ cd /var/www/html && \
126+ composer update && \
127+ composer update "drupal/core-*" --with-all-dependencies && \
128+ composer require drush/drush --with-all-dependencies
126129
127- COPY container /start.sh /start.sh
130+ COPY image /start.sh /start.sh
128131RUN chmod +x /start.sh
129132ENTRYPOINT ["/start.sh" ]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # 確保目錄存在
3+ # Ensure the directory exists
44mkdir -p /var/www/html/log/supervisor
55
6- # 設置正確的擁有者和權限
6+ # Set the correct owner and permissions
77chown -R www-data:www-data /var/www/html/log
88chmod -R 755 /var/www/html/log
99
10- # 啟動 supervisord
10+ # Start supervisord
1111exec /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
File renamed without changes.
You can’t perform that action at this time.
0 commit comments