Browse Source

dockerfile update

master
filesite 2 years ago
parent
commit
7dc0a153d1
  1. 1
      Dockerfile
  2. 2
      themes/googleimage/views/site/index.php

1
Dockerfile

@ -3,6 +3,7 @@ RUN apk add \
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 \
&& mkdir -p /var/www/downloads && cd /var/www/downloads/ && \ && mkdir -p /var/www/downloads && cd /var/www/downloads/ && \
wget "https://git.filesite.io/filesite/machete/archive/master.tar.gz" && \ wget "https://git.filesite.io/filesite/machete/archive/master.tar.gz" && \
tar -zxvf master.tar.gz && \ tar -zxvf master.tar.gz && \

2
themes/googleimage/views/site/index.php

@ -43,7 +43,7 @@ eof;
<div class="content"> <div class="content">
<?php <?php
$imgExts = array('jpg', 'jpeg', 'png', 'gif'); $imgExts = array('jpg', 'jpeg', 'png', 'gif');
$category = $viewData['scanResults'][$selectedId]; $category = !empty($viewData['scanResults'][$selectedId]) ? $viewData['scanResults'][$selectedId] : [];
//当前目录的描述介绍 //当前目录的描述介绍
if (!empty($category['description'])) { if (!empty($category['description'])) {

Loading…
Cancel
Save