Reworked ssmtp integration, need to use fastcgi_param PHP_ADMIN_VALUE "sendmail_path=/usr/sbin/sendmail -i -t"; in nginx config, and hostname: for php container
This commit is contained in:
parent
7ca57c02ab
commit
77c7e70428
@ -6,7 +6,7 @@ stages:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
BRANCH: mysql
|
BRANCH: mysql
|
||||||
VERSION: 7.1-fpm-${BRANCH}
|
VERSION: 7.2-fpm-${BRANCH}
|
||||||
CACHETAG: build-${BRANCH}
|
CACHETAG: build-${BRANCH}
|
||||||
DOCKER_REGISTRY: registry.leenooks.net
|
DOCKER_REGISTRY: registry.leenooks.net
|
||||||
DOCKER_HOST: tcp://${DOCKER_REGISTRY}-leenooks-ci-docker:2375
|
DOCKER_HOST: tcp://${DOCKER_REGISTRY}-leenooks-ci-docker:2375
|
||||||
|
10
Dockerfile
10
Dockerfile
@ -1,9 +1,11 @@
|
|||||||
# NAME leenooks/php
|
# NAME leenooks/php
|
||||||
# VERSION 7.1-fpm-mysql
|
# VERSION 7.2-fpm-mysql
|
||||||
|
|
||||||
FROM php:7.1-fpm
|
FROM php:7.2-fpm
|
||||||
RUN apt-get update && apt-get install -y openssh-server && rm -rf /var/lib/apt/lists/* /tmp/* \
|
|
||||||
&& useradd -c "Hosting Admin User" -u 1000 -g users -G www-data -d /var/www/html -M lamp
|
RUN apt-get update && apt-get install -y openssh-server ssmtp && rm -rf /var/lib/apt/lists/* /tmp/* \
|
||||||
|
&& useradd -c "Hosting Admin User" -u 1000 -g users -G www-data -d /var/www/html -M lamp \
|
||||||
|
&& sed -i -e 's/^mailhub=mail$/mailhub=smtp/' -e "s/^hostname=/#hostname=/" -e 's/#FromLineOverride=YES/FromLineOverride=YES/' /etc/ssmtp/ssmtp.conf
|
||||||
|
|
||||||
COPY sshd_config.patch /tmp
|
COPY sshd_config.patch /tmp
|
||||||
RUN (cd / && patch -p0 ) < /tmp/sshd_config.patch && rm /tmp/sshd_config.patch
|
RUN (cd / && patch -p0 ) < /tmp/sshd_config.patch && rm /tmp/sshd_config.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user