PHP Classes

File: docker/php-fpm/Dockerfile

Recommend this page to a friend!
  Classes of Max Stemplevski   Docker Symfony App   docker/php-fpm/Dockerfile   Download  
File: docker/php-fpm/Dockerfile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Docker Symfony App
Symfony project to deploy using Docker
Author: By
Last change:
Date: 1 year ago
Size: 854 bytes
 

Contents

Class file image Download
FROM php:8.1.0-fpm-alpine # Install packages RUN apk add --no-cache curl git build-base zlib-dev oniguruma-dev autoconf bash # Xdebug #RUN pecl install xdebug && docker-php-ext-enable xdebug ARG INSTALL_XDEBUG=false RUN if [ ${INSTALL_XDEBUG} = true ]; \ then \ pecl install xdebug && docker-php-ext-enable xdebug; \ fi; COPY ./docker/php-fpm/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini # Configure non-root user. ARG PUID=1000 ARG PGID=1000 RUN apk --no-cache add shadow && \ groupmod -o -g ${PGID} www-data && \ usermod -o -u ${PUID} -g www-data www-data # Source code RUN chown www-data:www-data /var/www COPY --chown=www-data:www-data ./ /var/www WORKDIR /var/www USER www-data # Composer COPY --from=composer:latest /usr/bin/composer /usr/bin/composer #RUN composer install --no-interaction CMD php-fpm EXPOSE 9000