2016-05-26 11:45:30 +00:00
|
|
|
# NAME leenooks/lamps
|
2016-08-11 02:00:49 +00:00
|
|
|
# VERSION php56
|
2016-05-26 11:45:30 +00:00
|
|
|
|
2016-08-11 01:22:20 +00:00
|
|
|
FROM registry.leenooks.net/leenooks/base:7
|
2016-05-26 11:45:30 +00:00
|
|
|
|
|
|
|
RUN yum -y install epel-release && yum clean all
|
|
|
|
|
2016-08-23 01:24:03 +00:00
|
|
|
RUN yum -y install tsmpipe && yum clean all
|
|
|
|
|
2016-08-11 02:00:49 +00:00
|
|
|
RUN yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm && yum clean all && rm -rf /var/tmp/*
|
|
|
|
|
2016-05-26 11:45:30 +00:00
|
|
|
# EPEL & Leenooks packages
|
2016-08-11 02:00:49 +00:00
|
|
|
RUN yum -y install --enabler remi-php56 \
|
2016-05-26 11:45:30 +00:00
|
|
|
httpd \
|
|
|
|
mariadb-server \
|
|
|
|
php \
|
|
|
|
php-gd \
|
|
|
|
php-ldap \
|
|
|
|
php-mbstring \
|
|
|
|
php-mysql \
|
|
|
|
php-pdo \
|
|
|
|
php-xml \
|
2016-08-11 01:22:20 +00:00
|
|
|
php-composer-installers.noarch \
|
2016-05-26 11:45:30 +00:00
|
|
|
m4 \
|
|
|
|
opendkim \
|
|
|
|
sendmail \
|
|
|
|
sendmail-cf \
|
|
|
|
awstats \
|
|
|
|
ln-http \
|
|
|
|
ln-awstats \
|
|
|
|
ln-mail-server \
|
2016-08-11 01:22:20 +00:00
|
|
|
openssh-server \
|
|
|
|
git \
|
2016-05-26 11:45:30 +00:00
|
|
|
&& yum clean all
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-01-25 11:34:13 +00:00
|
|
|
RUN useradd -c "Hosting Admin User" -m lamp -G apache
|
2016-08-11 01:52:40 +00:00
|
|
|
|
2017-01-25 11:34:13 +00:00
|
|
|
VOLUME [ "/etc/ssh" ]
|
2016-05-26 11:45:30 +00:00
|
|
|
EXPOSE 80 443
|
|
|
|
|
2017-04-19 11:55:33 +00:00
|
|
|
LABEL cron.hourly root:/usr/sbin/awstats.sh
|
|
|
|
LABEL cron.daily root:/usr/bin/tdp.mysql.sh -s information_schema:performance_schema
|
|
|
|
|
2016-05-26 11:45:30 +00:00
|
|
|
# Starting
|
2016-08-11 01:22:20 +00:00
|
|
|
COPY init /sbin/
|
2016-05-26 11:45:30 +00:00
|
|
|
ENTRYPOINT [ "/sbin/init" ]
|
|
|
|
CMD [ "start" ]
|
|
|
|
|
2016-08-11 01:52:40 +00:00
|
|
|
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"
|