PHP is 5.4, changed composer to install in as a particular user

This commit is contained in:
Deon George 2016-08-11 11:52:40 +10:00
parent 9470ad44bd
commit ca55cfd4ed

View File

@ -1,5 +1,5 @@
# NAME leenooks/lamps
# VERSION php53
# VERSION php54
# BUILD docker build -t="leenooks/lamps" .
# START docker run -dp 80:80 [-p 443:443 ] -p 2022:22 \
# -e NO_MAIL=TRUE \
@ -52,6 +52,8 @@ COPY .my.cnf /root/
COPY 10-default.conf /etc/httpd/conf.d/
RUN ln -f /etc/.ln/httpd/conf.d/awstats.conf /etc/httpd/conf.d/awstats.conf && ln -f /etc/.ln/opendkim.conf /etc/opendkim.conf
RUN useradd -c "Hosting Admin User" -m lamp
EXPOSE 80 443
# Starting
@ -59,11 +61,6 @@ COPY init /sbin/
ENTRYPOINT [ "/sbin/init" ]
CMD [ "start" ]
RUN composer global require "laravel/installer"
RUN composer require --dev --no-update "xethron/migrations-generator:dev-l5" && \
composer require --dev --no-update "way/generators:dev-feature/laravel-five-stable" && \
composer config repositories.repo-name git "git@github.com:jamisonvalenta/Laravel-4-Generators.git"
RUN useradd -c "Hosting Admin User" -m lamp && su lamp -lc "composer global require laravel/installer"
RUN yum -y install tsmpipe && yum clean all
RUN useradd -rc "Composer" -m composer -s /sbin/nologin && su composer -s /bin/bash -lc "composer global require laravel/installer && composer require --dev --no-update xethron/migrations-generator:dev-l5 && composer require --dev --no-update way/generators:dev-feature/laravel-five-stable && composer config repositories.repo-name git git@github.com:jamisonvalenta/Laravel-4-Generators.git"