mirror of
https://github.com/Yaslonane/docker_php-apache-postgre.git
synced 2026-05-19 09:47:58 +03:00
add composer php in container
This commit is contained in:
+2
-1
@@ -1,10 +1,11 @@
|
|||||||
version: '2'
|
version: '3.7'
|
||||||
services:
|
services:
|
||||||
php-apache-environment:
|
php-apache-environment:
|
||||||
container_name: php-apache
|
container_name: php-apache
|
||||||
build:
|
build:
|
||||||
context: ./php
|
context: ./php
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
+1
-14
@@ -1,17 +1,4 @@
|
|||||||
FROM php:8.1.22-apache
|
FROM php:8.1.22-apache
|
||||||
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql
|
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql
|
||||||
|
|
||||||
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
|
||||||
|
|
||||||
|
|
||||||
#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
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user