forked from leftypol/leftypol
Update dependencies for Docker image
This commit is contained in:
parent
41016b1ca2
commit
38afe37733
2 changed files with 19 additions and 12 deletions
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 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 docker-php-ext-install mbstring
|
||||||
RUN apt-get update -y && apt-get install -y libmcrypt-dev
|
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 docker-php-ext-install iconv
|
||||||
RUN apt-get update -y && apt-get install -y imagemagick
|
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 graphicsmagick
|
||||||
RUN apt-get update -y && apt-get install -y gifsicle
|
RUN apt-get update -y && apt-get install -y gifsicle
|
||||||
RUN docker-php-ext-configure gd \
|
# RUN docker-php-ext-configure gd
|
||||||
--with-png-dir=/usr \
|
# --with-jpeg=/usr/include
|
||||||
--with-jpeg-dir=/usr
|
# --with-png-dir=/usr \
|
||||||
RUN docker-php-ext-install gd
|
RUN docker-php-ext-install gd
|
||||||
RUN apt-get update -y \
|
RUN apt-get update -y \
|
||||||
&& apt-get install -y libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
|
&& apt-get install -y libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev git \
|
||||||
&& pecl install memcached-2.2.0 \
|
&& pecl install memcached \
|
||||||
&& echo extension=memcached.so >> /usr/local/etc/php/conf.d/memcached.ini \
|
&& echo extension=memcached.so >> /usr/local/etc/php/conf.d/memcached.ini \
|
||||||
&& apt-get remove -y build-essential libmemcached-dev libz-dev \
|
&& apt-get remove -y build-essential libmemcached-dev libz-dev \
|
||||||
&& apt-get autoremove -y \
|
&& apt-get autoremove -y \
|
||||||
&& apt-get clean \
|
&& 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:
|
services:
|
||||||
#nginx webserver + php 5.6
|
#nginx webserver + php 8.x
|
||||||
web:
|
web:
|
||||||
image: nginx:1.19.6-alpine
|
image: nginx:1.25.3-alpine
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -23,7 +23,7 @@ services:
|
||||||
ipv4_address: 172.20.0.4
|
ipv4_address: 172.20.0.4
|
||||||
#MySQL Service
|
#MySQL Service
|
||||||
db:
|
db:
|
||||||
image: mysql:5.6.50
|
image: mysql:8.0.35
|
||||||
container_name: db
|
container_name: db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
tty: true
|
tty: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue