mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-11 02:53:30 +00:00
Compare commits
No commits in common. "d3aa3298cbbbae0a8cc6eca992f6f036f283a499" and "5f577866aebe901d1e804bb1228be55cca5f9be1" have entirely different histories.
d3aa3298cb
...
5f577866ae
@ -1,4 +1,4 @@
|
|||||||
FROM debian:buster-20210208-slim as builder
|
FROM debian:buster-20210111-slim as builder
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
RUN apt update -qq && apt install wget -qqy && rm -rf /var/lib/apt/lists/*
|
RUN apt update -qq && apt install wget -qqy && rm -rf /var/lib/apt/lists/*
|
||||||
@ -15,5 +15,5 @@ RUN case $TARGETARCH in \
|
|||||||
;; \
|
;; \
|
||||||
esac && \
|
esac && \
|
||||||
chmod a+x /usr/bin/borg
|
chmod a+x /usr/bin/borg
|
||||||
FROM debian:buster-20210208-slim
|
FROM debian:buster-20210111-slim
|
||||||
COPY --from=builder /usr/bin/borg /usr/bin/borg
|
COPY --from=builder /usr/bin/borg /usr/bin/borg
|
||||||
|
@ -6,7 +6,7 @@ WORKDIR /
|
|||||||
RUN git clone -b v${VERSION} --depth 1 https://github.com/matrix-org/dendrite.git && \
|
RUN git clone -b v${VERSION} --depth 1 https://github.com/matrix-org/dendrite.git && \
|
||||||
cd dendrite && rm -rf .git && ./build.sh
|
cd dendrite && rm -rf .git && ./build.sh
|
||||||
|
|
||||||
FROM debian:buster-20210208-slim
|
FROM debian:buster-20210111-slim
|
||||||
|
|
||||||
COPY --from=builder /dendrite/bin/ /usr/local/bin/
|
COPY --from=builder /dendrite/bin/ /usr/local/bin/
|
||||||
COPY --from=builder /dendrite/dendrite-config.yaml /usr/local/share/
|
COPY --from=builder /dendrite/dendrite-config.yaml /usr/local/share/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM debian:buster-20210208-slim
|
FROM debian:buster-20210111-slim
|
||||||
ADD https://curl.haxx.se/ca/cacert.pem /etc/ssl/certs/cacert.pem
|
ADD https://curl.haxx.se/ca/cacert.pem /etc/ssl/certs/cacert.pem
|
||||||
ENV CURL_CA_BUNDLE=/etc/ssl/certs/cacert.pem
|
ENV CURL_CA_BUNDLE=/etc/ssl/certs/cacert.pem
|
||||||
|
|
||||||
|
@ -1,46 +1,68 @@
|
|||||||
FROM debian:buster-20210208-slim
|
FROM php:7.4.14-apache-buster
|
||||||
|
LABEL maintainer="Thomas Bruederli <thomas@roundcube.net>"
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
|
\
|
||||||
|
savedAptMark="$(apt-mark showmanual)"; \
|
||||||
|
\
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
php-exif \
|
libfreetype6-dev \
|
||||||
php-gd \
|
libicu-dev \
|
||||||
php-intl \
|
libjpeg62-turbo-dev \
|
||||||
php-ldap \
|
libldap2-dev \
|
||||||
php-pdo-mysql \
|
libmagickwand-dev \
|
||||||
php-pdo-pgsql \
|
libpng-dev \
|
||||||
php-zip \
|
libpq-dev \
|
||||||
php-imagick \
|
libsqlite3-dev \
|
||||||
php-cli \
|
libzip-dev \
|
||||||
apache2 \
|
|
||||||
libapache2-mod-php \
|
|
||||||
rsync \
|
|
||||||
curl \
|
|
||||||
gnupg \
|
|
||||||
dirmngr \
|
|
||||||
locales \
|
|
||||||
libc-l10n \
|
|
||||||
ca-certificates \
|
|
||||||
; \
|
; \
|
||||||
rm -rf /var/lib/apt/lists/*; \
|
\
|
||||||
a2enmod rewrite
|
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
||||||
|
docker-php-ext-configure gd; \
|
||||||
|
docker-php-ext-configure ldap; \
|
||||||
|
docker-php-ext-install -j$(nproc) \
|
||||||
|
exif \
|
||||||
|
gd \
|
||||||
|
intl \
|
||||||
|
ldap \
|
||||||
|
pdo_mysql \
|
||||||
|
pdo_pgsql \
|
||||||
|
zip \
|
||||||
|
; \
|
||||||
|
pecl install imagick; \
|
||||||
|
docker-php-ext-enable imagick; \
|
||||||
|
\
|
||||||
|
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
||||||
|
apt-mark auto '.*' > /dev/null; \
|
||||||
|
apt-mark manual $savedAptMark; \
|
||||||
|
ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
|
||||||
|
| awk '/=>/ { print $3 }' \
|
||||||
|
| sort -u \
|
||||||
|
| xargs -r dpkg-query -S \
|
||||||
|
| cut -d: -f1 \
|
||||||
|
| sort -u \
|
||||||
|
| xargs -rt apt-mark manual; \
|
||||||
|
\
|
||||||
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# install composer
|
# installto.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"; \
|
\
|
||||||
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"; \
|
apt-get update; \
|
||||||
php composer-setup.php --install-dir=/usr/local/bin/ --version=2.0.9; \
|
apt-get install -y --no-install-recommends \
|
||||||
php -r "unlink('composer-setup.php');"
|
rsync \
|
||||||
|
; \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# include the wait-for-it.sh script
|
# ... and composer.phar
|
||||||
RUN curl -fL https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh > /wait-for-it.sh && chmod +x /wait-for-it.sh
|
ADD https://getcomposer.org/installer /tmp/composer-installer.php
|
||||||
|
|
||||||
# use custom PHP settings
|
RUN php /tmp/composer-installer.php --install-dir=/usr/local/bin/; \
|
||||||
COPY php.ini /usr/local/etc/php/conf.d/roundcube-defaults.ini
|
rm /tmp/composer-installer.php
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /
|
RUN a2enmod rewrite
|
||||||
|
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
||||||
CMD ["apache2-foreground"]
|
|
||||||
|
|
||||||
# expose these volumes
|
# expose these volumes
|
||||||
VOLUME /var/roundcube/config
|
VOLUME /var/roundcube/config
|
||||||
@ -54,6 +76,9 @@ ENV ROUNDCUBEMAIL_VERSION $VERSION
|
|||||||
|
|
||||||
# Download package and extract to web volume
|
# Download package and extract to web volume
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
fetchDeps="gnupg dirmngr locales libc-l10n"; \
|
||||||
|
apt-get -qq update; \
|
||||||
|
apt-get install -y --no-install-recommends $fetchDeps; \
|
||||||
curl -o roundcubemail.tar.gz -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz; \
|
curl -o roundcubemail.tar.gz -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz; \
|
||||||
curl -o roundcubemail.tar.gz.asc -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz.asc; \
|
curl -o roundcubemail.tar.gz.asc -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz.asc; \
|
||||||
export GNUPGHOME="$(mktemp -d)"; \
|
export GNUPGHOME="$(mktemp -d)"; \
|
||||||
@ -68,3 +93,14 @@ RUN set -ex; \
|
|||||||
rm -r "$GNUPGHOME" roundcubemail.tar.gz.asc roundcubemail.tar.gz; \
|
rm -r "$GNUPGHOME" roundcubemail.tar.gz.asc roundcubemail.tar.gz; \
|
||||||
rm -rf /usr/src/roundcubemail/installer; \
|
rm -rf /usr/src/roundcubemail/installer; \
|
||||||
chown -R www-data:www-data /usr/src/roundcubemail/logs
|
chown -R www-data:www-data /usr/src/roundcubemail/logs
|
||||||
|
|
||||||
|
# include the wait-for-it.sh script
|
||||||
|
RUN curl -fL https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh > /wait-for-it.sh && chmod +x /wait-for-it.sh
|
||||||
|
|
||||||
|
# use custom PHP settings
|
||||||
|
COPY php.ini /usr/local/etc/php/conf.d/roundcube-defaults.ini
|
||||||
|
|
||||||
|
COPY docker-entrypoint.sh /
|
||||||
|
|
||||||
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
|
CMD ["apache2-foreground"]
|
||||||
|
@ -1 +1 @@
|
|||||||
VERSION=1.4.11
|
VERSION=1.4.10
|
||||||
|
Loading…
Reference in New Issue
Block a user