Conversie codeigniter 4
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
ARG PHP_VERSION=8.2
|
||||
FROM php:${PHP_VERSION}-fpm
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
libpng-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libfreetype6-dev \
|
||||
libzip-dev \
|
||||
libonig-dev \
|
||||
libicu-dev \
|
||||
locales \
|
||||
zip \
|
||||
unzip \
|
||||
git \
|
||||
curl \
|
||||
vim \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install PHP extensions
|
||||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install -j$(nproc) \
|
||||
pdo_mysql \
|
||||
mysqli \
|
||||
mbstring \
|
||||
zip \
|
||||
exif \
|
||||
pcntl \
|
||||
gd \
|
||||
intl \
|
||||
opcache
|
||||
|
||||
# Install Xdebug
|
||||
RUN pecl install xdebug && docker-php-ext-enable xdebug
|
||||
|
||||
# Install Composer
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
# Xdebug configuration
|
||||
COPY docker/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
||||
|
||||
# PHP configuration
|
||||
COPY docker/php.ini /usr/local/etc/php/conf.d/custom.ini
|
||||
|
||||
# Add user for application
|
||||
RUN groupadd -g 1000 www && useradd -u 1000 -ms /bin/bash -g www www
|
||||
|
||||
# Set ownership
|
||||
COPY --chown=www:www . /var/www/html
|
||||
|
||||
USER www
|
||||
|
||||
EXPOSE 9000
|
||||
CMD ["php-fpm"]
|
||||
Reference in New Issue
Block a user