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.

31 lines
1.4 KiB

FROM php:8.1.12RC1-fpm-alpine3.16
RUN apk add rsync nginx zlib-dev libpng-dev freetype-dev libjpeg-turbo-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \
&& cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/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 \
&& rm -f master.tar.gz \
&& mv machete/ /var/www/ \
&& cd /var/www/machete/ \
&& mkdir www/navs/ && mkdir www/girls/ && mkdir www/videos/ \
&& chown www-data:www-data runtime/ \
&& chown -R www-data:www-data www/content/ \
&& chown www-data:www-data www/navs/ \
&& chown www-data:www-data www/girls/ \
&& chown www-data:www-data www/videos/ \
&& cd /var/www/downloads/ \
&& wget "https://git.filesite.io/wen/jialuomaadmin/archive/master.tar.gz" \
&& tar -zxvf master.tar.gz \
&& rm -f master.tar.gz \
&& rm -rf /var/www/machete/www/admin/ \
&& mv jialuomaadmin/dist/ /var/www/machete/www/admin \
&& rm -f /etc/nginx/http.d/default.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
3 years ago
EXPOSE 80/tcp
3 years ago
ENTRYPOINT ["/var/www/machete/docker-entrypoint.sh"]
# 默认使用导航站皮肤:manual
CMD ["manual"]