Base on Alpine, still needs cleanup
parent
ed1679baef
commit
cf4cefbccd
|
@ -1,24 +1,15 @@
|
||||||
FROM php:7.1-fpm
|
FROM php:7.1-fpm-alpine
|
||||||
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apk add -U --no-cache libxml2-dev icu-dev redis mysql-client bash autoconf g++ make
|
||||||
g++ \
|
RUN pecl install redis && pecl clear-cache
|
||||||
libicu-dev \
|
|
||||||
libidn11-dev \
|
|
||||||
libxml2-dev \
|
|
||||||
mysql-client \
|
|
||||||
redis-tools \
|
|
||||||
zlib1g-dev \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN docker-php-ext-configure intl
|
RUN docker-php-ext-configure intl
|
||||||
RUN docker-php-ext-install intl pdo pdo_mysql xmlrpc
|
RUN docker-php-ext-install intl pdo pdo_mysql xmlrpc
|
||||||
|
RUN docker-php-ext-enable redis
|
||||||
RUN pear install channel://pear.php.net/Net_IDNA2-0.1.1 Auth_SASL Net_IMAP NET_SMTP Net_IDNA2 Mail_mime
|
RUN pear install channel://pear.php.net/Net_IDNA2-0.1.1 Auth_SASL Net_IMAP NET_SMTP Net_IDNA2 Mail_mime
|
||||||
RUN pecl install -o -f redis \
|
RUN apk del autoconf g++ make libxml2-dev
|
||||||
&& rm -rf /tmp/pear \
|
|
||||||
&& docker-php-ext-enable redis
|
|
||||||
|
|
||||||
COPY ./docker-entrypoint.sh /
|
COPY ./docker-entrypoint.sh /
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ fi
|
||||||
for file in $(ls /data/dkim/keys/); do
|
for file in $(ls /data/dkim/keys/); do
|
||||||
domain=${file%.dkim}
|
domain=${file%.dkim}
|
||||||
if [[ -f /data/dkim/txt/${file} ]]; then
|
if [[ -f /data/dkim/txt/${file} ]]; then
|
||||||
redis-cli -h redis-mailcow HSET DKIM_PUB_KEYS "${domain}" "$(cat /data/dkim/keys/${domain})"
|
redis-cli -h redis-mailcow HSET DKIM_PUB_KEYS "${domain}" "$(cat /data/dkim/txt/${file})"
|
||||||
redis-cli -h redis-mailcow HSET DKIM_PRIV_KEYS "${domain}" "$(cat /data/dkim/keys/${file})"
|
redis-cli -h redis-mailcow HSET DKIM_PRIV_KEYS "${domain}" "$(cat /data/dkim/keys/${file})"
|
||||||
redis-cli -h redis-mailcow HSET DKIM_SELECTORS "${domain}" "dkim.${domain}"
|
redis-cli -h redis-mailcow HSET DKIM_SELECTORS "${domain}" "dkim.${domain}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue