mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-28 22:47:18 +02:00
- resize uploaded image to thumbnail, medium, large, feed, and id3 formats - set image url formats where adapted in views - set format sizes and extensions in Images config file for customization - add validation for image uploads: `min_dims` and `is_image_squared` - update codeigniter4 and myth-auth php packages to latest develop versions - update npm packages to latest versions - update public/.htaccess closes #6
28 lines
805 B
Docker
28 lines
805 B
Docker
FROM php:7.2-fpm
|
|
|
|
COPY . /castopod
|
|
WORKDIR /castopod
|
|
|
|
### Install CodeIgniter's server requirements
|
|
#-- https://github.com/codeigniter4/appstarter#server-requirements
|
|
|
|
# Install intl extension using https://github.com/mlocati/docker-php-extension-installer
|
|
RUN apt-get update && apt-get install -y \
|
|
libicu-dev \
|
|
libpng-dev \
|
|
libjpeg-dev \
|
|
zlib1g-dev \
|
|
&& docker-php-ext-install intl
|
|
|
|
RUN docker-php-ext-configure gd --with-jpeg-dir=/usr/include/ \
|
|
&& docker-php-ext-install gd
|
|
|
|
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
|
|
|
|
RUN echo "file_uploads = On\n" \
|
|
"memory_limit = 100M\n" \
|
|
"upload_max_filesize = 100M\n" \
|
|
"post_max_size = 120M\n" \
|
|
"max_execution_time = 300\n" \
|
|
> /usr/local/etc/php/conf.d/uploads.ini
|