roundcube/Dockerfile

76 lines
1.8 KiB
Docker
Raw Normal View History

2022-07-12 17:49:44 +00:00
FROM docker.io/alpine:3.16 AS builder
2019-06-21 10:05:50 +00:00
2021-08-24 09:33:30 +00:00
RUN apk add --no-cache \
php8 \
php8-phar \
php8-mbstring \
php8-openssl \
php8-ctype \
php8-gd \
php8-dom \
php8-xml \
php8-ldap \
php8-xmlreader \
php8-xmlwriter
ENV COMPOSER_VERSION=2.1.6
ENV COMPOSER_SHA256_SUM=72524ccebcb071968eb83284507225fdba59f223719b2b3f333d76c8a9ac6b72
RUN wget https://getcomposer.org/download/$COMPOSER_VERSION/composer.phar
RUN echo "$COMPOSER_SHA256_SUM composer.phar" | sha256sum -c - || exit 1
RUN mv composer.phar /usr/bin/composer
RUN chmod +x /usr/bin/composer
2022-09-10 16:18:22 +00:00
ENV VERSION=1.6.0
ENV SHA256_SUM=2409ccdfe2e465f086cb9fc18c88dfe0aaf6ccc23924564975061209921694ba
2019-06-21 10:05:50 +00:00
RUN wget https://github.com/roundcube/roundcubemail/releases/download/$VERSION/roundcubemail-$VERSION-complete.tar.gz
RUN echo "$SHA256_SUM roundcubemail-$VERSION-complete.tar.gz" | sha256sum -c - || exit 1
RUN mkdir -p /var/lib/roundcube
RUN tar xzf roundcubemail-$VERSION-complete.tar.gz -C /var/lib/roundcube --strip 1
2022-07-12 17:49:44 +00:00
FROM docker.io/thallian/php8-fpm:3.16
2016-07-13 15:07:43 +00:00
2017-01-10 15:33:59 +00:00
RUN apk add --no-cache \
2019-06-21 10:05:50 +00:00
openssl \
2017-01-10 15:33:59 +00:00
tar \
nginx \
postgresql-client \
aspell \
ca-certificates \
2021-08-24 09:06:25 +00:00
php8 \
php8-imap \
php8-dom \
php8-json \
php8-xml \
php8-session \
php8-pdo \
php8-pdo_pgsql \
php8-sockets \
php8-exif \
php8-iconv \
php8-openssl \
php8-mbstring \
php8-sockets \
2021-08-24 09:33:30 +00:00
php8-pecl-mcrypt \
2021-08-24 09:06:25 +00:00
php8-zip \
php8-pspell \
2021-08-24 09:33:30 +00:00
php8-pecl-apcu \
2021-08-24 09:06:25 +00:00
php8-gd \
php8-ctype \
php8-xmlreader \
php8-xmlwriter \
php8-tokenizer \
php8-curl \
php8-simplexml \
2021-08-24 09:33:30 +00:00
php8-xml \
2021-08-24 09:54:27 +00:00
php8-dom \
php8-intl
2019-06-21 11:22:33 +00:00
2021-08-24 09:34:53 +00:00
COPY --from=builder --chown=nginx:nginx /var/lib/roundcube /var/lib/roundcube
2017-01-10 15:33:59 +00:00
2016-07-13 15:07:43 +00:00
ADD /rootfs /
2021-08-24 09:06:25 +00:00
EXPOSE 8080
2016-10-28 13:44:06 +00:00
2016-07-13 15:07:43 +00:00
ENV FPMUSER nginx
ENV FPMGROUP nginx