Commit f54af715 authored by dhevanthareza's avatar dhevanthareza

add composer

parent 0249b073
FROM php:8.1-apache FROM php:8.1-apache
RUN docker-php-ext-install mysqli pdo pdo_mysql RUN docker-php-ext-install mysqli pdo pdo_mysql
RUN apt-get update -y && apt-get install -y libpng-dev RUN apt-get update -y && apt-get install -y libpng-dev zlib1g-dev
RUN apt-get update && \ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
apt-get install -y \
zlib1g-dev
RUN docker-php-ext-install gd RUN docker-php-ext-install gd
RUN a2enmod rewrite RUN a2enmod rewrite
RUN service apache2 restart RUN service apache2 restart
......
...@@ -2,12 +2,12 @@ version: '3.1' ...@@ -2,12 +2,12 @@ version: '3.1'
services: services:
php-apache: php-apache:
container_name: digitepp container_name: base-docker
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- 4000:80 - 4005:80
volumes: volumes:
- ./:/var/www/html/ - ./:/var/www/html/
- ./apache/default.conf:/etc/apache2/sites-enabled/000-default.conf - ./apache/default.conf:/etc/apache2/sites-enabled/000-default.conf
\ No newline at end of file
<?php echo "Hello World"; ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment