PHP is 5.4, changed composer to install in as a particular user
This commit is contained in:
parent
9470ad44bd
commit
ca55cfd4ed
13
Dockerfile
13
Dockerfile
@ -1,5 +1,5 @@
|
|||||||
# NAME leenooks/lamps
|
# NAME leenooks/lamps
|
||||||
# VERSION php53
|
# VERSION php54
|
||||||
# BUILD docker build -t="leenooks/lamps" .
|
# BUILD docker build -t="leenooks/lamps" .
|
||||||
# START docker run -dp 80:80 [-p 443:443 ] -p 2022:22 \
|
# START docker run -dp 80:80 [-p 443:443 ] -p 2022:22 \
|
||||||
# -e NO_MAIL=TRUE \
|
# -e NO_MAIL=TRUE \
|
||||||
@ -52,6 +52,8 @@ COPY .my.cnf /root/
|
|||||||
COPY 10-default.conf /etc/httpd/conf.d/
|
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 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
|
EXPOSE 80 443
|
||||||
|
|
||||||
# Starting
|
# Starting
|
||||||
@ -59,11 +61,6 @@ COPY init /sbin/
|
|||||||
ENTRYPOINT [ "/sbin/init" ]
|
ENTRYPOINT [ "/sbin/init" ]
|
||||||
CMD [ "start" ]
|
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 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"
|
||||||
|
Loading…
Reference in New Issue
Block a user