roundcube/Dockerfile

75 lines
1.7 KiB
Docker
Raw Normal View History

2023-09-26 13:41:34 +00:00
FROM docker.io/alpine:3.18 AS builder
2019-06-21 10:05:50 +00:00
2021-08-24 09:33:30 +00:00
RUN apk add --no-cache \
2023-09-26 13:41:34 +00:00
php82 \
php82-phar \
php82-mbstring \
php82-openssl \
php82-ctype \
php82-gd \
php82-dom \
php82-xml \
php82-ldap \
php82-xmlreader \
php82-xmlwriter
2021-08-24 09:33:30 +00:00
2023-09-26 13:41:34 +00:00
ENV COMPOSER_VERSION=2.6.3
ENV COMPOSER_SHA256_SUM=e58a390cac0df45ccf5a3d95ae94fa239eded8b7907fa2c8f752f020304fc9b1
2021-08-24 09:33:30 +00:00
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-09-26 13:41:34 +00:00
ENV VERSION=1.6.3
ENV SHA256_SUM=5e60ccd50f62fb00c43d335ec08a9bdafbf2bdd02552256cc4009908b39ad98f
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
2023-09-26 13:41:34 +00:00
FROM docker.io/thallian/php8-fpm:3.18-8.2
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 \
2023-09-26 13:41:34 +00:00
php82 \
php82-imap \
php82-dom \
php82-json \
php82-xml \
php82-session \
php82-pdo \
php82-pdo_pgsql \
php82-sockets \
php82-exif \
php82-iconv \
php82-openssl \
php82-mbstring \
php82-sockets \
php82-zip \
php82-pspell \
php82-pecl-apcu \
php82-gd \
php82-ctype \
php82-xmlreader \
php82-xmlwriter \
php82-tokenizer \
php82-curl \
php82-simplexml \
php82-xml \
php82-dom \
php82-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