@@ -33,7 +33,7 @@ ADD --chmod=0644 https://dl.cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem /o
33
33
34
34
RUN <<EOF
35
35
apk update && apk upgrade
36
- apk --no-cache add bash curl git make nano neofetch sudo tar tini
36
+ apk --no-cache add bash curl git make msmtp nano neofetch ssmtp sudo tar tini
37
37
neofetch
38
38
addgroup -S ${DEFAULT_USER} -g ${DEFAULT_USER_UID}
39
39
adduser -D -S -G ${DEFAULT_USER} -u ${DEFAULT_USER_UID} -s /bin/bash ${DEFAULT_USER}
47
47
COPY --chown=${DEFAULT_USER}:${DEFAULT_USER} files/home/druid/ /home/druid
48
48
COPY files/usr/local/bin/ /usr/local/bin/
49
49
COPY --link --from=amazeeio/envplate:v1.0.3 /usr/local/bin/ep /usr/local/bin/ep
50
- COPY files/entrypoints/00-umask.sh files/entrypoints/15-xdebug.sh files/entrypoints/19-php_ini.sh /entrypoints/
50
+ COPY files/entrypoints/00-umask.sh \
51
+ files/entrypoints/15-xdebug.sh \
52
+ files/entrypoints/19-php_ini.sh \
53
+ files/entrypoints/40-ssmtp.sh /entrypoints/
54
+ COPY files/etc/msmtprc /etc/msmtprc
55
+ COPY files/etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf
51
56
52
57
SHELL ["/bin/bash" , "-c" ]
53
58
USER ${DEFAULT_USER}
@@ -175,6 +180,8 @@ COPY files/etc/php/php-fpm.d/www.conf.ep /etc/php83/php-fpm.d/www.conf.ep
175
180
176
181
FROM build-php-fpm-${PHP_SHORT_VERSION} as final-php-fpm
177
182
183
+ ENV PHP_SENDMAIL_PATH="/usr/bin/msmtp -t --read-envelope-from"
184
+
178
185
RUN sudo -s <<EOF
179
186
addgroup -g 82 -S www-data || echo "www-data group already exists"
180
187
adduser -u 82 -D -S -G www-data www-data
@@ -189,6 +196,8 @@ CMD ["sudo", "-E", "LD_PRELOAD=/usr/lib/preloadable_libiconv.so", "php-fpm", "-F
189
196
190
197
FROM final-php-fpm as drupal-php-81
191
198
199
+ ENV PHP_SENDMAIL_PATH="/usr/bin/dos2unix -u | /usr/bin/msmtp -t --read-envelope-from"
200
+
192
201
RUN sudo -s <<EOF
193
202
apk --no-cache add mysql-client openssh rsync mariadb-connector-c \
194
203
php81-{bcmath,ctype,dom,exif,gd,intl,pdo,pdo_mysql,simplexml,soap,sockets,sodium,tokenizer,xml,xmlreader,xmlwriter}
@@ -221,14 +230,14 @@ ENV DRUPAL_DB_NAME=drupal \
221
230
DRUPAL_DB_PASS=drupal \
222
231
DRUPAL_DB_HOST=db \
223
232
DRUPAL_DB_PORT=3306 \
224
- PHP_SENDMAIL_PATH="/usr/sbin/sendmail -S host.docker.internal:1025 -t" \
225
233
SSH_AUTH_SOCK=/tmp/ssh-agent
226
234
227
235
RUN sudo -s <<EOF
228
236
install -o ${DEFAULT_USER} -g ${DEFAULT_USER} -d /home/${DEFAULT_USER}/.drush /home/${DEFAULT_USER}/drush-backups/drupal
229
237
EOF
230
238
231
239
COPY files/entrypoints/10-ssh-agent.sh /entrypoints/
240
+ COPY drupal/set-permissions.sh /entrypoints/99-set-permissions.sh
232
241
233
242
#
234
243
# Drupal Web
0 commit comments