Skip to content

Commit 1ca2cfd

Browse files
author
Cyril
committed
Improve Dockerfile for Davis
1 parent 118649f commit 1ca2cfd

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docker/Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,13 @@ RUN docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd \
3737
&& docker-php-source delete
3838

3939
# Davis installation
40-
41-
RUN cd /tmp/ && curl --silent -LO https://github.com/tchapi/davis/archive/v1.0.0.zip \
42-
&& unzip /tmp/1.0.0.zip -d /var/www/ \
43-
&& rm -f /tmp/1.0.0.zip
44-
RUN mv /var/www/1.0.0 /var/www/davis
40+
RUN cd /var/www/ && curl --silent -o v1.0.0.tar.gz -L https://github.com/tchapi/davis/archive/v1.0.0.tar.gz \
41+
&& tar xvzf v1.0.0.tar.gz \
42+
&& mv /var/www/davis-1.0.0 /var/www/davis \
43+
&& rm v1.0.0.tar.gz
4544

4645
WORKDIR /var/www/davis
4746

4847
# Install dependencies
4948
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
5049
RUN APP_ENV=prod composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader
51-
52-
RUN chown -Rf www-data:www-data .
53-
RUN chmod -Rf g+w var

0 commit comments

Comments
 (0)