Skip to content

Commit bd163c4

Browse files
committed
Change folder name.
1 parent a1d8fb9 commit bd163c4

10 files changed

Lines changed: 12 additions & 9 deletions

File tree

Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ RUN \
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
9696
RUN \
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
112112
RUN \
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
124124
RUN \
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
128131
RUN chmod +x /start.sh
129132
ENTRYPOINT ["/start.sh"]
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22

3-
# 確保目錄存在
3+
# Ensure the directory exists
44
mkdir -p /var/www/html/log/supervisor
55

6-
# 設置正確的擁有者和權限
6+
# Set the correct owner and permissions
77
chown -R www-data:www-data /var/www/html/log
88
chmod -R 755 /var/www/html/log
99

10-
# 啟動 supervisord
10+
# Start supervisord
1111
exec /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf

0 commit comments

Comments
 (0)