Skip to content
Snippets Groups Projects
Commit 5b64a90a authored by csauder's avatar csauder
Browse files

ajout du docker php

parent ed85f517
Branches
Tags v3.8.02
No related merge requests found
version: '3.8'
services:
php:
build: './docker/php'
user: ${UID:-1000}:${GID:-1000}
ports:
- ${PHP_PORT:-8080}:80
volumes:
- ./:/var/www/html
command: php -S 0.0.0.0:80 -t .
\ No newline at end of file
FROM php:7.4
RUN apt update
RUN apt install git zip unzip libxml2-dev -y
RUN docker-php-ext-install pdo_mysql
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER=1
WORKDIR /var/www/html
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment