speedup build
This commit is contained in:
parent
da1fcb29d8
commit
194cd95de2
10
Dockerfile
10
Dockerfile
|
@ -9,8 +9,8 @@ RUN apt-get update \
|
|||
&& apt-get install -yy curl ed default-mysql-client unzip git libicu67 libicu-dev \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
USER root
|
||||
RUN docker-php-ext-install intl pdo_mysql
|
||||
RUN curl -L https://phar.phpunit.de/phpunit-9.5.phar -o /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit
|
||||
|
||||
ADD https://download.civicrm.org/cv/cv.phar /usr/local/bin/cv
|
||||
ADD https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar /usr/local/bin/wp
|
||||
|
@ -20,11 +20,11 @@ WORKDIR /var/www/civi/
|
|||
|
||||
COPY bin/*.sh /usr/local/bin/
|
||||
RUN chmod a+rx /usr/local/bin/*.sh
|
||||
|
||||
RUN download.sh
|
||||
|
||||
RUN chown -R root /var/www/
|
||||
RUN chown -R www-data /var/www/civi/wp-content/
|
||||
RUN mkdir -p /var/www/civi/wp-content/themes/ /var/www/civi/wp-content/plugins/ && chown -R root /var/www/civi/wp-content/themes/ /var/www/civi/wp-content/plugins/
|
||||
|
||||
RUN chown www-data /var/www/civi/ /var/www/civi/wp-content/uploads/
|
||||
RUN find /var/www/ -type d |xargs chmod 755
|
||||
RUN find /var/www/ -type f |xargs -I'{}' chmod 644 '{}'
|
||||
|
||||
USER www-data
|
||||
|
|
Loading…
Reference in New Issue