This repository has been archived on 2021-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
2018-01-02 23:16:28 +01:00
|
|
|
FROM registry.dryusdan.fr/dryusdan/php:7.1
|
2017-11-03 20:28:35 +01:00
|
|
|
|
2018-01-02 22:41:50 +01:00
|
|
|
ARG CACHET_VER=2.3.13
|
2017-11-03 20:28:35 +01:00
|
|
|
ENV UID=991 GID=991
|
|
|
|
|
|
|
|
|
|
|
|
RUN export BUILD_DEPS="build-base \
|
|
|
|
wget \
|
|
|
|
gnupg \
|
|
|
|
autoconf \
|
|
|
|
libressl-dev \
|
|
|
|
g++ \
|
|
|
|
pcre-dev \
|
|
|
|
curl-dev \
|
|
|
|
libedit-dev \
|
|
|
|
gcc \
|
|
|
|
zlib-dev \
|
|
|
|
make \
|
|
|
|
pkgconf \
|
|
|
|
wget \
|
|
|
|
ca-certificates \
|
|
|
|
libxml2-dev" \
|
|
|
|
&& apk -U add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS \
|
|
|
|
&& apk -U add ${BUILD_DEPS} \
|
|
|
|
&& pecl install apcu \
|
|
|
|
&& docker-php-ext-enable apcu \
|
|
|
|
&& apk del .phpize-deps-configure ${BUILD_DEPS} \
|
|
|
|
&& apk -U add git curl mariadb-client \
|
2018-01-02 22:41:50 +01:00
|
|
|
&& git clone --branch v${CACHET_VER} https://github.com/CachetHQ/Cachet.git /cachetHQ
|
2017-11-03 20:28:35 +01:00
|
|
|
COPY rootfs /
|
|
|
|
WORKDIR cachetHQ
|
|
|
|
RUN chmod +x /usr/local/bin/startup \
|
2018-01-02 22:41:50 +01:00
|
|
|
&& mv env .env \
|
2017-11-03 20:28:35 +01:00
|
|
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
|
|
|
&& composer install --no-dev \
|
|
|
|
&& apk del git curl \
|
|
|
|
&& rm -rf /var/cache/apk/* /tmp/* /root/.gnupg /root/.cache/ /cachetHQ/.git
|