roundcube/Dockerfile

75 lines
1.7 KiB
Docker
Raw Permalink Normal View History

2022-11-23 13:02:16 +00:00
FROM docker.io/alpine:3.17 AS builder
2019-06-21 10:05:50 +00:00
2021-08-24 09:33:30 +00:00
RUN apk add --no-cache \
2022-11-23 13:02:16 +00:00
php81 \
php81-phar \
php81-mbstring \
php81-openssl \
php81-ctype \
php81-gd \
php81-dom \
php81-xml \
php81-ldap \
php81-xmlreader \
php81-xmlwriter
2021-08-24 09:33:30 +00:00
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
2023-01-25 07:17:19 +00:00
ENV VERSION=1.6.1
ENV SHA256_SUM=46c2f6ba34bcb7e57e47cb034bf338e5fc7dcceddda9212a2ef3bd3146d97bed
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-11-23 13:02:16 +00:00
FROM docker.io/thallian/php8-fpm:3.17
2016-07-13 15:07:43 +00:00
2017-01-10 15:33:59 +00:00
RUN apk add --no-cache \
2022-11-23 13:02:16 +00:00
openssl \
tar \
nginx \
postgresql-client \
aspell \
ca-certificates \
php81 \
php81-imap \
php81-dom \
php81-json \
php81-xml \
php81-session \
php81-pdo \
php81-pdo_pgsql \
php81-sockets \
php81-exif \
php81-iconv \
php81-openssl \
php81-mbstring \
php81-sockets \
php81-zip \
php81-pspell \
php81-pecl-apcu \
php81-gd \
php81-ctype \
php81-xmlreader \
php81-xmlwriter \
php81-tokenizer \
php81-curl \
php81-simplexml \
php81-xml \
php81-dom \
php81-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