E
E
EVOSandru62018-11-21 17:31:07
PHP
EVOSandru6, 2018-11-21 17:31:07

What needs to be added to the Dockerfile for php:7.1-fpm so that the images are loaded and processed?

Good afternoon!
/docker/containers/php-fpm/Dockerfile :

FROM php:7.1-fpm

RUN apt-get update && apt-get install -y libmcrypt-dev libpq-dev ffmpeg \
    && docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
    && docker-php-ext-install mcrypt pdo_pgsql pgsql bcmath

ADD ./conf/default.ini /usr/local/etc/php/conf.d/default.ini

WORKDIR /var/www

I looked here: https://github.com/docker-library/php/blob/b99209c... I did not find phrases
like gd there.
/docker-compose.yml
version: '3.7'
services:
nginx:
container_name: nginx
build:
context: ./
dockerfile: docker/containers/nginx/Dockerfile
volumes:
- ${APP_PATH_HOST}: /var/www
ports:
- 8082: 80
- 4432:443
php-fpm:
container_name: php-fpm
build: ${CONTAINERS_PATH}/php-fpm
volumes:
- ${APP_PATH_HOST}: /var/www
environment:
- REDIS_PORT=6379
- REDIS_HOST=redis
- DB_CONNECTION=pgsql
- DB_PORT=5432
- DB_HOST=pgsql
php-cli:
container_name: php-cli
build: ${CONTAINERS_PATH}/php-cli
volumes:
- ${APP_PATH_HOST}:/var/www
environment:
- REDIS_PORT=6379
- REDIS_HOST=redis
- DB_CONNECTION=pgsql
- DB_PORT=5432
- DB_HOST=pgsql
tty: true
pgsql:
container_name: pgsql
image: postgres:9.6-alpine
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DATABASE=${DB_NAME}
ports:
- 54321:5432
volumes:
- ${STORAGE_PATH}/postgres:/var/lib/postgresql/data
node:
container_name: node
image: node:10.11-jessie
volumes:
- ${APP_PATH_HOST} :/var/www
working_dir: /var/www
tty: true

Created a folder for images, set permissions to 777 , enctype'=>'multipart/form-data' is in the form, no errors. I came to the conclusion that something is wrong with the Dockerfile .
Tell me - how to correctly install the gd lib (it seems that there is a problem due to its absence) during docker-compose upand activate it in php.ini from under docker?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2018-11-21
@EVOSandru6

https://hub.docker.com/_/php/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question