roundcube/Dockerfile

61 lines
1.3 KiB
Docker
Raw Normal View History

2021-06-20 10:21:46 +00:00
FROM alpine:3.14 AS builder
2019-06-21 10:05:50 +00:00
2021-08-24 09:06:25 +00:00
ENV VERSION=1.5-rc
ENV SHA256_SUM=5287fbe5cf41ff2ae71648b863b0e4726d7f932c84f3b4fb30de096dc208f40c
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
2021-08-24 09:06:25 +00:00
FROM thallian/php8-fpm:latest
2016-07-13 15:07:43 +00:00
2019-06-21 10:05:50 +00:00
COPY --from=builder /var/lib/roundcube /var/lib/roundcube
2017-06-13 11:10:35 +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 \
php8-mcrypt \
php8-zip \
php8-ldap \
php8-pspell \
php8-apcu \
php8-gd \
php8-ctype \
php8-xmlreader \
php8-xmlwriter \
php8-tokenizer \
php8-curl \
php8-simplexml \
2019-06-21 11:37:06 +00:00
composer
2019-06-21 11:22:33 +00:00
2019-06-21 11:37:06 +00:00
WORKDIR /var/lib/roundcube
2019-06-21 11:43:35 +00:00
RUN composer require --update-no-dev roundcube/carddav
2019-06-21 11:37:06 +00:00
WORKDIR /
2017-01-10 15:33:59 +00:00
2016-07-13 15:07:43 +00:00
RUN chown -R nginx:nginx /var/lib/roundcube
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