Compare commits

...

3 Commits

Author SHA1 Message Date
chris ff1884dfa0 enable prod config
dockers/pixelfed/pipeline/head There was a failure building this commit Details
2023-06-20 20:43:47 +02:00
chris 5827e9189e enable opcache 2023-06-20 20:43:34 +02:00
chris 343be959f0 chown www-data 2023-06-20 20:43:15 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,7 @@ RUN set -xe;\
RUN set -xe;\
docker-php-ext-configure mbstring --disable-mbregex &&\
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm &&\
docker-php-ext-install -j$(nproc) curl zip bcmath intl mbstring xml pcntl gd mysqli pdo_mysql pdo_pgsql &&\
docker-php-ext-install -j$(nproc) curl zip bcmath intl mbstring xml pcntl gd mysqli pdo_mysql pdo_pgsql opcache &&\
pecl install imagick &&\
pecl install redis &&\
docker-php-ext-enable imagick redis
@ -57,8 +57,9 @@ RUN set -xe;\
RUN set -xe;\
a2enmod rewrite &&\
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf &&\
sed -i 's/^post_max_size.*/post_max_size = 100M/g' /usr/local/etc/php/php.ini* &&\
sed -i 's/^upload_max_filesize.*/upload_max_filesize = 100M/g' /usr/local/etc/php/php.ini*
sed -i 's/^post_max_size.*/post_max_size = 100M/g' "$PHP_INI_DIR/php.ini*" &&\
sed -i 's/^upload_max_filesize.*/upload_max_filesize = 100M/g' "$PHP_INI_DIR/php.ini* &&\
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
WORKDIR /var/www
VOLUME /var/www/storage /var/www/bootstrap
ENTRYPOINT /entrypoint.sh

View File

@ -7,6 +7,7 @@ then
fi
cp -r storage.skel/* storage/
chown -R www-data:www-data storage/ bootstrap/
php /wait-for-db.php