diff --git a/Dockerfile b/Dockerfile index 8a29e7b..c265f3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"