1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

Add Laravel Implementation with Docker Compose (#344)

Signed-off-by: Hanie Asemi <hanieasemi76@gmail.com>
This commit is contained in:
Hanie Asemi 2023-04-18 21:18:37 +03:30
parent e6b1d2755f
commit dd0dcf2920
5 changed files with 198 additions and 0 deletions

50
laravel/php/Dockerfile Normal file
View file

@ -0,0 +1,50 @@
FROM php:8.0.3-fpm
RUN docker-php-ext-install pdo pdo_mysql
RUN apt-get update
# Install useful tools
RUN apt-get -y install apt-utils nano wget dialog vim
# Install important libraries
RUN echo "\e[1;33mInstall important libraries\e[0m"
RUN apt-get -y install --fix-missing \
apt-utils \
build-essential \
git \
curl \
libcurl4 \
libcurl4-openssl-dev \
zlib1g-dev \
libzip-dev \
zip \
libbz2-dev \
locales \
libmcrypt-dev \
libicu-dev \
libonig-dev \
libxml2-dev
RUN echo "\e[1;33mInstall important docker dependencies\e[0m"
RUN docker-php-ext-install \
exif \
pcntl \
bcmath \
ctype \
curl \
iconv \
xml \
soap \
pcntl \
mbstring \
tokenizer \
bz2 \
zip \
intl
# Install Postgre PDO
RUN apt-get install -y libpq-dev \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo pdo_pgsql pgsql