Skip to content

Commit 2524f67

Browse files
author
Cyril
committed
Improve Dockerfile
1 parent 9465cdd commit 2524f67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ RUN docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd \
4141
# Davis installation
4242
RUN cd /var/www/ && curl --silent -o ${version}.tar.gz -L https://github.com/tchapi/davis/archive/v${version}.tar.gz \
4343
&& tar xvzf ${version}.tar.gz \
44-
&& mv /var/www/davis-${version} /var/www/davis \
44+
&& mv -f /var/www/davis-${version} /var/www/davis \
4545
&& rm ${version}.tar.gz
4646

4747
WORKDIR /var/www/davis
4848

4949
# Install dependencies
5050
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
5151
RUN APP_ENV=prod composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader
52+
53+
RUN chown -R www-data:www-data var

0 commit comments

Comments
 (0)