add msmtp support

This commit is contained in:
Pau Capó 2023-11-20 20:31:16 +01:00
parent 6e9c884375
commit f33835ec24
5 changed files with 16 additions and 9 deletions

View file

@ -6,12 +6,14 @@ docker login "http://git.paucapo.com/"
for dockerfile in $SCRIPT_DIR/*:*; do
package=`basename "$dockerfile"`
if [[ "$1" == "" || "$1" == "$package" ]]; then
echo "Building $package"
docker build \
-f "$dockerfile" \
-t "git.paucapo.com/server/$package" \
"$SCRIPT_DIR"
docker push "git.paucapo.com/server/$package"
fi
done
sudo docker image prune -a --force

View file

@ -1,3 +1,5 @@
FROM php:7.4-apache
RUN a2enmod rewrite
RUN docker-php-ext-install pdo pdo_mysql
RUN apt-get update; apt-get install -y --no-install-recommends msmtp msmtp-mta; rm -rf /var/lib/apt/lists/*;
RUN [ ! -f /etc/msmtprc ] && touch /etc/msmtprc

View file

@ -1,4 +1,5 @@
FROM php:8.0-apache
RUN a2enmod rewrite
RUN docker-php-ext-install pdo pdo_mysql
RUN apt-get update; apt-get install -y --no-install-recommends msmtp msmtp-mta; rm -rf /var/lib/apt/lists/*;
RUN [ ! -f /etc/msmtprc ] && touch /etc/msmtprc

View file

@ -1,4 +1,5 @@
FROM php:8.1-apache
RUN a2enmod rewrite
RUN docker-php-ext-install pdo pdo_mysql
RUN apt-get update; apt-get install -y --no-install-recommends msmtp msmtp-mta; rm -rf /var/lib/apt/lists/*;
RUN [ ! -f /etc/msmtprc ] && touch /etc/msmtprc

View file

@ -1,4 +1,5 @@
FROM php:8.2-apache
RUN a2enmod rewrite
RUN docker-php-ext-install pdo pdo_mysql
RUN apt-get update; apt-get install -y --no-install-recommends msmtp msmtp-mta; rm -rf /var/lib/apt/lists/*;
RUN [ ! -f /etc/msmtprc ] && touch /etc/msmtprc