|
|
@ -5,7 +5,7 @@ RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n |
|
|
|
&& yum -y install yum-utils \ |
|
|
|
&& yum -y install yum-utils \ |
|
|
|
&& yum-config-manager --disable 'remi-php*' \ |
|
|
|
&& yum-config-manager --disable 'remi-php*' \ |
|
|
|
&& yum-config-manager --enable remi-safe \ |
|
|
|
&& yum-config-manager --enable remi-safe \ |
|
|
|
&& yum -y install php82-php-fpm php82-php-gd php82-php-mbstring nginx wget rsync \ |
|
|
|
&& yum -y install php82-php-fpm php82-php-gd php82-php-mbstring nginx wget rsync samba \ |
|
|
|
&& ln -s /opt/remi/php82/root/usr/sbin/php-fpm /usr/sbin/php-fpm \ |
|
|
|
&& ln -s /opt/remi/php82/root/usr/sbin/php-fpm /usr/sbin/php-fpm \ |
|
|
|
&& cd /etc/opt/remi/php82/ \ |
|
|
|
&& cd /etc/opt/remi/php82/ \ |
|
|
|
&& sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 10M/g' php.ini \ |
|
|
|
&& sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 10M/g' php.ini \ |
|
|
@ -15,10 +15,33 @@ RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n |
|
|
|
&& mv machete/ /var/www/ \ |
|
|
|
&& mv machete/ /var/www/ \ |
|
|
|
&& cd /var/www/ && rm -rf downloads/ \ |
|
|
|
&& cd /var/www/ && rm -rf downloads/ \ |
|
|
|
&& mkdir machete/www/navs/ && mkdir machete/www/girls/ && mkdir machete/www/videos/ \ |
|
|
|
&& mkdir machete/www/navs/ && mkdir machete/www/girls/ && mkdir machete/www/videos/ \ |
|
|
|
|
|
|
|
&& cd machete/ \ |
|
|
|
|
|
|
|
&& chown apache:apache runtime/ \ |
|
|
|
|
|
|
|
&& chown -R apache:apache www/content/ \ |
|
|
|
|
|
|
|
&& chown apache:apache www/navs/ \ |
|
|
|
|
|
|
|
&& chown apache:apache www/girls/ \ |
|
|
|
|
|
|
|
&& chown apache:apache www/videos/ \ |
|
|
|
&& rm -f /etc/nginx/nginx.conf \ |
|
|
|
&& rm -f /etc/nginx/nginx.conf \ |
|
|
|
&& cp /var/www/machete/conf/nginx.conf /etc/nginx/nginx.conf \ |
|
|
|
&& cp /var/www/machete/conf/nginx.conf /etc/nginx/nginx.conf \ |
|
|
|
&& cp /var/www/machete/conf/nginx_machete.conf /etc/nginx/conf.d/machete.conf \ |
|
|
|
&& cp /var/www/machete/conf/nginx_machete.conf /etc/nginx/conf.d/machete.conf \ |
|
|
|
&& ln -s /var/www/machete/bin/upgrade.sh /usr/bin/upgrade_machete |
|
|
|
&& ln -s /var/www/machete/bin/upgrade.sh /usr/bin/upgrade_machete \ |
|
|
|
|
|
|
|
&& mkdir -p /var/www/sambashare/filesite/ \ |
|
|
|
|
|
|
|
&& cd /var/www/sambashare/filesite/ \ |
|
|
|
|
|
|
|
&& mv /var/www/machete/www/content/ ./ \ |
|
|
|
|
|
|
|
&& mv /var/www/machete/www/navs/ ./ \ |
|
|
|
|
|
|
|
&& mv /var/www/machete/www/girls/ ./ \ |
|
|
|
|
|
|
|
&& mv /var/www/machete/www/videos/ ./ \ |
|
|
|
|
|
|
|
&& ln -s /var/www/sambashare/filesite/content/ /var/www/machete/www/content \ |
|
|
|
|
|
|
|
&& ln -s /var/www/sambashare/filesite/navs/ /var/www/machete/www/navs \ |
|
|
|
|
|
|
|
&& ln -s /var/www/sambashare/filesite/girls/ /var/www/machete/www/girls \ |
|
|
|
|
|
|
|
&& ln -s /var/www/sambashare/filesite/videos/ /var/www/machete/www/videos \ |
|
|
|
|
|
|
|
&& chgrp apache /var/www/sambashare/ \ |
|
|
|
|
|
|
|
&& useradd -M -d /var/www/sambashare/filesite -s /usr/sbin/nologin -G apache filesite \ |
|
|
|
|
|
|
|
&& chown -R filesite:apache /var/www/sambashare/filesite \ |
|
|
|
|
|
|
|
&& chmod -R 770 /var/www/sambashare/filesite \ |
|
|
|
|
|
|
|
&& rm -f /etc/samba/smb.conf && cp /var/www/machete/conf/smb.conf /etc/samba/ \ |
|
|
|
|
|
|
|
&& /var/www/machete/bin/smbpwd.sh filesite 88888888 \ |
|
|
|
|
|
|
|
&& ln -s /var/www/machete/bin/smbpwd.sh /usr/bin/smbpwd |
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 80/tcp |
|
|
|
EXPOSE 80/tcp |
|
|
|
ENTRYPOINT ["/var/www/machete/docker-entrypoint.sh"] |
|
|
|
ENTRYPOINT ["/var/www/machete/docker-entrypoint.sh"] |
|
|
|