|
|
|
@ -5,19 +5,20 @@ RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n
@@ -5,19 +5,20 @@ RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n
|
|
|
|
|
&& yum -y install yum-utils \ |
|
|
|
|
&& yum-config-manager --disable 'remi-php*' \ |
|
|
|
|
&& yum-config-manager --enable remi-safe \ |
|
|
|
|
&& yum -y install php82-php-fpm php82-php-gd php82-php-mbstring nginx \ |
|
|
|
|
&& yum -y install php82-php-fpm php82-php-gd php82-php-mbstring nginx wget rsync \ |
|
|
|
|
&& ln -s /opt/remi/php82/root/usr/sbin/php-fpm /usr/sbin/php-fpm \ |
|
|
|
|
&& cd /etc/opt/remi/php82/ \ |
|
|
|
|
&& sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 10M/g' php.ini \ |
|
|
|
|
&& mkdir -p /var/www/downloads && cd /var/www/downloads/ && \ |
|
|
|
|
wget "https://git.filesite.io/filesite/machete/archive/master.tar.gz" && \ |
|
|
|
|
tar -zxvf master.tar.gz && \ |
|
|
|
|
mv machete/ /var/www/ && \ |
|
|
|
|
cd /var/www/ && rm -rf downloads/ && \ |
|
|
|
|
mkdir machete/www/navs/ && mkdir machete/www/girls/ && mkdir machete/www/videos/ && \ |
|
|
|
|
rm -f /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 |
|
|
|
|
&& mkdir -p /var/www/downloads && cd /var/www/downloads/ \ |
|
|
|
|
&& wget "https://git.filesite.io/filesite/machete/archive/master.tar.gz" \ |
|
|
|
|
&& tar -zxvf master.tar.gz \ |
|
|
|
|
&& mv machete/ /var/www/ \ |
|
|
|
|
&& cd /var/www/ && rm -rf downloads/ \ |
|
|
|
|
&& mkdir machete/www/navs/ && mkdir machete/www/girls/ && mkdir machete/www/videos/ \ |
|
|
|
|
&& rm -f /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 \ |
|
|
|
|
&& ln -s /var/www/machete/bin/upgrade.sh /usr/bin/upgrade_machete |
|
|
|
|
|
|
|
|
|
EXPOSE 80/tcp |
|
|
|
|
ENTRYPOINT ["/var/www/machete/docker-entrypoint.sh"] |
|
|
|
|