1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-15 03:17:38 +01:00
vichan/Dockerfile

29 lines
1.2 KiB
Docker
Raw Normal View History

2024-01-17 20:06:22 +01:00
FROM php:8.1.8-fpm
COPY . /code
2020-12-28 00:15:12 +01:00
RUN docker-php-ext-install pdo pdo_mysql
2024-01-17 20:06:22 +01:00
RUN apt-get update -y && apt-get install -y libpng-dev libjpeg-dev libonig-dev
2020-12-28 00:15:12 +01:00
RUN docker-php-ext-install mbstring
RUN apt-get update -y && apt-get install -y libmcrypt-dev
2024-01-17 20:06:22 +01:00
# RUN docker-php-ext-install -j$(nproc) mcrypt
2020-12-28 00:15:12 +01:00
RUN docker-php-ext-install iconv
RUN apt-get update -y && apt-get install -y imagemagick
RUN apt-get update -y && apt-get install -y graphicsmagick
RUN apt-get update -y && apt-get install -y gifsicle
2024-01-17 20:06:22 +01:00
# RUN docker-php-ext-configure gd
# --with-jpeg=/usr/include
# --with-png-dir=/usr \
2020-12-28 00:15:12 +01:00
RUN docker-php-ext-install gd
RUN apt-get update -y \
2024-01-17 20:06:22 +01:00
&& apt-get install -y libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev git \
&& pecl install memcached \
2020-12-28 00:15:12 +01:00
&& echo extension=memcached.so >> /usr/local/etc/php/conf.d/memcached.ini \
&& apt-get remove -y build-essential libmemcached-dev libz-dev \
&& apt-get autoremove -y \
&& apt-get clean \
2024-01-17 20:06:22 +01:00
&& rm -rf /tmp/pear \
&& curl -sS https://getcomposer.org/installer -o composer-setup.php \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& docker-php-ext-install bcmath \
&& cd /code && composer install