mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 01:24:05 +01:00
Update dependencies for Docker image
This commit is contained in:
parent
90235b2bab
commit
5ca2d194b4
25
Dockerfile
25
Dockerfile
@ -1,22 +1,29 @@
|
||||
FROM php:5.6-fpm
|
||||
FROM php:8.1.8-fpm
|
||||
|
||||
COPY . /code
|
||||
|
||||
RUN docker-php-ext-install pdo pdo_mysql
|
||||
RUN apt-get update -y && apt-get install -y libpng-dev libjpeg-dev
|
||||
RUN apt-get update -y && apt-get install -y libpng-dev libjpeg-dev libonig-dev
|
||||
RUN docker-php-ext-install mbstring
|
||||
RUN apt-get update -y && apt-get install -y libmcrypt-dev
|
||||
RUN docker-php-ext-install -j$(nproc) mcrypt
|
||||
# RUN docker-php-ext-install -j$(nproc) mcrypt
|
||||
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
|
||||
RUN docker-php-ext-configure gd \
|
||||
--with-png-dir=/usr \
|
||||
--with-jpeg-dir=/usr
|
||||
# RUN docker-php-ext-configure gd
|
||||
# --with-jpeg=/usr/include
|
||||
# --with-png-dir=/usr \
|
||||
RUN docker-php-ext-install gd
|
||||
RUN apt-get update -y \
|
||||
&& apt-get install -y libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
|
||||
&& pecl install memcached-2.2.0 \
|
||||
&& apt-get install -y libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev git \
|
||||
&& pecl install memcached \
|
||||
&& 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 \
|
||||
&& rm -rf /tmp/pear
|
||||
&& 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
|
@ -1,7 +1,7 @@
|
||||
services:
|
||||
#nginx webserver + php 5.6
|
||||
#nginx webserver + php 8.x
|
||||
web:
|
||||
image: nginx:1.19.6-alpine
|
||||
image: nginx:1.25.3-alpine
|
||||
ports:
|
||||
- "8080:80"
|
||||
depends_on:
|
||||
@ -23,7 +23,7 @@ services:
|
||||
ipv4_address: 172.20.0.4
|
||||
#MySQL Service
|
||||
db:
|
||||
image: mysql:5.6.50
|
||||
image: mysql:8.0.35
|
||||
container_name: db
|
||||
restart: unless-stopped
|
||||
tty: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user