add composer php in container

This commit is contained in:
andrey
2023-08-09 16:13:39 +03:00
parent 7955dd8b06
commit 97a77ffc22
8 changed files with 3 additions and 15 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
version: '2'
version: '3.7'
services:
php-apache-environment:
container_name: php-apache
build:
context: ./php
dockerfile: Dockerfile
restart: always
depends_on:
- db
volumes:
+1 -14
View File
@@ -1,17 +1,4 @@
FROM php:8.1.22-apache
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql
#FROM php:fpm-alpine
#RUN apk update; \
# apk upgrade;
#RUN apk add --n0-cache curl git build-base zlib-dev oniguruma-dev autoconf bash
#COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
#RUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
# && docker-php-ext-install pgsql pdo_pgsql
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.