add composer to build step
This commit is contained in:
parent
bf09e9bafc
commit
f7fb00ef78
36
Dockerfile
36
Dockerfile
@ -1,5 +1,27 @@
|
|||||||
FROM alpine:3.14 AS builder
|
FROM alpine:3.14 AS builder
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
RUN ln -s /usr/bin/php8 /usr/bin/php
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
ENV VERSION=1.5-rc
|
ENV VERSION=1.5-rc
|
||||||
ENV SHA256_SUM=5287fbe5cf41ff2ae71648b863b0e4726d7f932c84f3b4fb30de096dc208f40c
|
ENV SHA256_SUM=5287fbe5cf41ff2ae71648b863b0e4726d7f932c84f3b4fb30de096dc208f40c
|
||||||
RUN wget https://github.com/roundcube/roundcubemail/releases/download/$VERSION/roundcubemail-$VERSION-complete.tar.gz
|
RUN wget https://github.com/roundcube/roundcubemail/releases/download/$VERSION/roundcubemail-$VERSION-complete.tar.gz
|
||||||
@ -9,7 +31,7 @@ RUN tar xzf roundcubemail-$VERSION-complete.tar.gz -C /var/lib/roundcube --strip
|
|||||||
|
|
||||||
FROM thallian/php8-fpm:latest
|
FROM thallian/php8-fpm:latest
|
||||||
|
|
||||||
COPY --from=builder /var/lib/roundcube /var/lib/roundcube
|
COPY --from=builder --chown=nginx:nginx /var/lib/roundcube /var/lib/roundcube
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
openssl \
|
openssl \
|
||||||
@ -32,11 +54,10 @@ RUN apk add --no-cache \
|
|||||||
php8-openssl \
|
php8-openssl \
|
||||||
php8-mbstring \
|
php8-mbstring \
|
||||||
php8-sockets \
|
php8-sockets \
|
||||||
php8-mcrypt \
|
php8-pecl-mcrypt \
|
||||||
php8-zip \
|
php8-zip \
|
||||||
php8-ldap \
|
|
||||||
php8-pspell \
|
php8-pspell \
|
||||||
php8-apcu \
|
php8-pecl-apcu \
|
||||||
php8-gd \
|
php8-gd \
|
||||||
php8-ctype \
|
php8-ctype \
|
||||||
php8-xmlreader \
|
php8-xmlreader \
|
||||||
@ -44,14 +65,11 @@ RUN apk add --no-cache \
|
|||||||
php8-tokenizer \
|
php8-tokenizer \
|
||||||
php8-curl \
|
php8-curl \
|
||||||
php8-simplexml \
|
php8-simplexml \
|
||||||
composer
|
php8-xml \
|
||||||
|
php8-dom
|
||||||
|
|
||||||
WORKDIR /var/lib/roundcube
|
|
||||||
RUN composer require --update-no-dev roundcube/carddav
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
RUN chown -R nginx:nginx /var/lib/roundcube
|
|
||||||
|
|
||||||
ADD /rootfs /
|
ADD /rootfs /
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
Loading…
Reference in New Issue
Block a user