Source code of filesite.io.
https://filesite.io
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.3 KiB
26 lines
1.3 KiB
FROM centos:centos7.9.2009 |
|
|
|
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \ |
|
&& yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm \ |
|
&& 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 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 \ |
|
&& ln -s /var/www/machete/bin/upgrade.sh /usr/bin/upgrade_machete |
|
|
|
EXPOSE 80/tcp |
|
ENTRYPOINT ["/var/www/machete/docker-entrypoint.sh"] |
|
# 默认使用导航站皮肤:manual |
|
CMD ["manual"] |