fix(): composer workaround temporary fix

pull/3/head
Hardware 2016-07-17 23:07:18 +02:00
parent 3e16d4d2a3
commit f33e22d234
No known key found for this signature in database
GPG Key ID: EC6DF6F90263EDEA
1 changed files with 7 additions and 6 deletions

View File

@ -30,15 +30,16 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
php7-session@testing \ php7-session@testing \
&& cd /tmp \ && cd /tmp \
&& ln -s /usr/bin/php7 /usr/bin/php \ && ln -s /usr/bin/php7 /usr/bin/php \
&& curl -s http://getcomposer.org/installer | php \ # && curl -s http://getcomposer.org/installer | php \
&& mv /tmp/composer.phar /usr/bin/composer \ # && mv /tmp/composer.phar /usr/bin/composer \
&& chmod +x /usr/bin/composer \ # && chmod +x /usr/bin/composer \
&& mkdir -p /flarum/app \ && mkdir -p /flarum/app \
&& addgroup -g ${GID} flarum && adduser -h /flarum -s /bin/sh -D -G flarum -u ${UID} flarum \ && addgroup -g ${GID} flarum && adduser -h /flarum -s /bin/sh -D -G flarum -u ${UID} flarum \
&& chown -R flarum:flarum /flarum \ && chown -R flarum:flarum /flarum \
&& su-exec flarum:flarum composer create-project flarum/flarum /flarum/app $VERSION --stability=beta \ && su-exec flarum:flarum git clone https://github.com/hardware/flarum-src.git /flarum/app
&& composer clear-cache \ # && su-exec flarum:flarum composer create-project flarum/flarum /flarum/app $VERSION --stability=beta \
&& rm -rf /flarum/.composer # && composer clear-cache \
# && rm -rf /flarum/.composer
COPY config.sql /flarum/app/config.sql COPY config.sql /flarum/app/config.sql
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf