|
|
@ -1,6 +1,5 @@ |
|
|
|
FROM php:8.1.12RC1-fpm-alpine3.16 |
|
|
|
FROM php:8.1.12RC1-fpm-alpine3.16 |
|
|
|
RUN apk add \ |
|
|
|
RUN apk add rsync nginx zlib-dev libpng-dev freetype-dev libjpeg-turbo-dev \ |
|
|
|
nginx zlib-dev libpng-dev freetype-dev libjpeg-turbo-dev \ |
|
|
|
|
|
|
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ |
|
|
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ |
|
|
|
&& docker-php-ext-install -j$(nproc) gd \ |
|
|
|
&& docker-php-ext-install -j$(nproc) gd \ |
|
|
|
&& cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini \ |
|
|
|
&& cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini \ |
|
|
@ -9,14 +8,13 @@ RUN apk add \ |
|
|
|
&& tar -zxvf master.tar.gz \ |
|
|
|
&& tar -zxvf master.tar.gz \ |
|
|
|
&& rm -f master.tar.gz \ |
|
|
|
&& rm -f master.tar.gz \ |
|
|
|
&& mv machete/ /var/www/ \ |
|
|
|
&& mv machete/ /var/www/ \ |
|
|
|
&& cd /var/www/ && rm -rf downloads/ \ |
|
|
|
&& cd /var/www/machete/ \ |
|
|
|
&& mkdir machete/www/navs/ && mkdir machete/www/girls/ && mkdir machete/www/videos/ \ |
|
|
|
&& mkdir www/navs/ && mkdir www/girls/ && mkdir www/videos/ \ |
|
|
|
&& cd machete/ \ |
|
|
|
&& chown www-data:www-data runtime/ \ |
|
|
|
&& chown apache:apache runtime/ \ |
|
|
|
&& chown -R www-data:www-data www/content/ \ |
|
|
|
&& chown -R apache:apache www/content/ \ |
|
|
|
&& chown www-data:www-data www/navs/ \ |
|
|
|
&& chown apache:apache www/navs/ \ |
|
|
|
&& chown www-data:www-data www/girls/ \ |
|
|
|
&& chown apache:apache www/girls/ \ |
|
|
|
&& chown www-data:www-data www/videos/ \ |
|
|
|
&& chown apache:apache www/videos/ \ |
|
|
|
|
|
|
|
&& cd /var/www/downloads/ \ |
|
|
|
&& cd /var/www/downloads/ \ |
|
|
|
&& wget "https://git.filesite.io/wen/jialuomaadmin/archive/master.tar.gz" \ |
|
|
|
&& wget "https://git.filesite.io/wen/jialuomaadmin/archive/master.tar.gz" \ |
|
|
|
&& tar -zxvf master.tar.gz \ |
|
|
|
&& tar -zxvf master.tar.gz \ |
|
|
@ -24,7 +22,8 @@ RUN apk add \ |
|
|
|
&& rm -rf /var/www/machete/www/admin/ \ |
|
|
|
&& rm -rf /var/www/machete/www/admin/ \ |
|
|
|
&& mv jialuomaadmin/dist/ /var/www/machete/www/admin \ |
|
|
|
&& mv jialuomaadmin/dist/ /var/www/machete/www/admin \ |
|
|
|
&& rm -f /etc/nginx/http.d/default.conf \ |
|
|
|
&& rm -f /etc/nginx/http.d/default.conf \ |
|
|
|
&& cp /var/www/machete/conf/nginx_machete.conf /etc/nginx/http.d/machete.conf |
|
|
|
&& cp /var/www/machete/conf/nginx_machete.conf /etc/nginx/http.d/machete.conf \ |
|
|
|
|
|
|
|
&& ln -s /var/www/machete/bin/upgrade.sh /usr/bin/upgrade_machete |
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 80/tcp |
|
|
|
EXPOSE 80/tcp |
|
|
|
ENTRYPOINT ["/var/www/machete/docker-entrypoint.sh"] |
|
|
|
ENTRYPOINT ["/var/www/machete/docker-entrypoint.sh"] |
|
|
|