Merge pull request #174 from nextcloud/fix/noid/apcu

fix apcu which needs to be installed before running composer install
This commit is contained in:
Simon L 2022-01-28 14:44:49 +01:00 committed by GitHub
commit d19069c8e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,10 @@ RUN set -ex; \
COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/
RUN chmod +x /usr/local/bin/docker
RUN mkdir -p /usr/src/php/ext/apcu && \
curl -fsSL https://pecl.php.net/get/apcu | tar xvz -C "/usr/src/php/ext/apcu" --strip 1 && \
docker-php-ext-install apcu
RUN set -e && \
curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer && \
@ -74,10 +78,6 @@ RUN a2dissite 000-default && \
RUN mkdir /var/log/supervisord; \
mkdir /var/run/supervisord;
RUN mkdir -p /usr/src/php/ext/apcu && \
curl -fsSL https://pecl.php.net/get/apcu | tar xvz -C "/usr/src/php/ext/apcu" --strip 1 && \
docker-php-ext-install apcu
COPY Caddyfile /
COPY start.sh /usr/bin/
COPY cron.sh /