roundcube/Dockerfile
2021-08-24 11:06:25 +02:00

61 lines
1.3 KiB
Docker

FROM alpine:3.14 AS builder
ENV VERSION=1.5-rc
ENV SHA256_SUM=5287fbe5cf41ff2ae71648b863b0e4726d7f932c84f3b4fb30de096dc208f40c
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
FROM thallian/php8-fpm:latest
COPY --from=builder /var/lib/roundcube /var/lib/roundcube
RUN apk add --no-cache \
openssl \
tar \
nginx \
postgresql-client \
aspell \
ca-certificates \
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 \
php8-mcrypt \
php8-zip \
php8-ldap \
php8-pspell \
php8-apcu \
php8-gd \
php8-ctype \
php8-xmlreader \
php8-xmlwriter \
php8-tokenizer \
php8-curl \
php8-simplexml \
composer
WORKDIR /var/lib/roundcube
RUN composer require --update-no-dev roundcube/carddav
WORKDIR /
RUN chown -R nginx:nginx /var/lib/roundcube
ADD /rootfs /
EXPOSE 8080
ENV FPMUSER nginx
ENV FPMGROUP nginx