Skeleton is ready
This commit is contained in:
27
deploy/main/php.Dockerfile
Normal file
27
deploy/main/php.Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM php:8.3-fpm
|
||||
|
||||
ENV MAKEFLAGS="-j$(nproc)"
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y git zip unzip curl \
|
||||
libicu-dev libzip-dev libcurl4-openssl-dev libxml2-dev libpq-dev libonig-dev
|
||||
|
||||
RUN docker-php-ext-install intl zip bcmath xml pdo pdo_pgsql dom mbstring curl
|
||||
|
||||
# Install xdebug and redis extensions if needed
|
||||
#
|
||||
# RUN pecl install xdebug redis-6.2.0
|
||||
# RUN docker-php-ext-enable redis
|
||||
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# xDebug configuration
|
||||
#
|
||||
# COPY ./usr/local/etc/php/conf.d/* /usr/local/etc/php/conf.d/
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
COPY composer.* .
|
||||
RUN composer install --no-dev
|
||||
|
||||
COPY . .
|
||||
Reference in New Issue
Block a user