Skip to content

Commit 3137434

Browse files
committed
Fix composer issue
1 parent a199933 commit 3137434

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ RUN cd /var/www/chamilo/www;chown -R www-data:www-data app main/default_course_d
2020
# Get Composer (putting the download in /root is discutible)
2121
RUN cd /root
2222
RUN curl -sS https://getcomposer.org/installer | php
23+
RUN chmod +x composer.phar
24+
RUN mv composer.phar /usr/local/bin/composer
2325

2426
# Get Chash
2527
RUN cd /root
2628
RUN git clone https://github.com/chamilo/chash
2729
RUN cd chash
28-
RUN composer update && composer install
30+
RUN composer update --no-dev
31+
RUN php -d phar.readonly=0 createPhar.php
32+
RUN chmod +x chash.phar
33+
RUN mv chash.phar /usr/local/bin/chash
2934

3035
# Go to Chamilo folder and install
3136
# Soon... (this involves having a SQL server in a linked container)

0 commit comments

Comments
 (0)